View previous topic :: View next topic |
Author |
Message |
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Mon Jun 23, 2003 8:56 pm Post subject: Strange behaviour of rar files |
|
|
hm.
got some .. err.. stuff, packed in serval rar files.
asdf.rar
asdf.r00
asdf.r01
...
asdf.r30
now here comes the bogus:
Quote: | $ ls -lh
...
-rwxrwxrwx 1 root root 14M May 31 16:18 asdf.r29
-rwxrwxrwx 1 root root 14M May 31 16:30 asdf.r30
-rwxrwxrwx 1 root root 14M May 31 16:42 asdf.rar
... |
BUT:
Quote: | $ ls -l asdf.rar
ls: asdf.rar: No such file or directory
|
Bash completetition would give me: asdf.rar\
what could this be caused by? _________________ Markus Nigbur |
|
Back to top |
|
|
far Guru
Joined: 10 Mar 2003 Posts: 394 Location: Stockholm, Sweden
|
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Mon Jun 23, 2003 9:19 pm Post subject: |
|
|
haha!
that's it. quite obvious after relooking at the bash completition output.
thanks in advance _________________ Markus Nigbur |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Mon Jun 23, 2003 9:21 pm Post subject: |
|
|
far wrote: | Perhaps the filename ends with a space?
"asdf.rar " |
That would make sense seeing as "\" is the escape charachter. _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jun 24, 2003 11:51 am Post subject: |
|
|
so, uhm.
what would be the easiest way to rename a bunch of them automatically from
'asdf.r00\ ' to 'asdf.r00'?
or better said:
howto substitute in commandline/bash? _________________ Markus Nigbur |
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Tue Jun 24, 2003 12:06 pm Post subject: |
|
|
would rid all files in the current directory of spaces. I'm not sure how to specify wildcards in rename otherwise I'd give you a more precise solution.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
pYrania Retired Dev
Joined: 27 Oct 2002 Posts: 650 Location: Cologne - Germany
|
Posted: Tue Jun 24, 2003 7:07 pm Post subject: |
|
|
thanks again. _________________ Markus Nigbur |
|
Back to top |
|
|
|