Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange behaviour of rar files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Mon Jun 23, 2003 8:56 pm    Post subject: Strange behaviour of rar files Reply with quote

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
View user's profile Send private message
far
Guru
Guru


Joined: 10 Mar 2003
Posts: 394
Location: Stockholm, Sweden

PostPosted: Mon Jun 23, 2003 9:13 pm    Post subject: Reply with quote

Perhaps the filename ends with a space?
"asdf.rar "
_________________
The Porthole Portage Frontend
Back to top
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Mon Jun 23, 2003 9:19 pm    Post subject: Reply with quote

haha!
that's it. quite obvious after relooking at the bash completition output.

thanks in advance :oops:
_________________
Markus Nigbur
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Mon Jun 23, 2003 9:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jun 24, 2003 11:51 am    Post subject: Reply with quote

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
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Tue Jun 24, 2003 12:06 pm    Post subject: Reply with quote

Code:
rename " " "" *
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
View user's profile Send private message
pYrania
Retired Dev
Retired Dev


Joined: 27 Oct 2002
Posts: 650
Location: Cologne - Germany

PostPosted: Tue Jun 24, 2003 7:07 pm    Post subject: Reply with quote

thanks again.
_________________
Markus Nigbur
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum