I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 688 votes ~ 10 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article Easily renaming multiple files.:
#2 Re: Easily renaming multiple files. Posted by Anonymous (82.119.xx.xx) on Wed 1 Jun 2005 at 12:59 Those mentioned quotes around the argument won't prevent problems with spaces in filenames. The problem is in "for" command which will use the space as separator between its arguments, so if we have files "a.jpg" and "b b.jpg": for i in *.jpg is equivalent to for i in a.jpg b b.jpg so "echo $i" will be executed 3 times and for files which actually don't exist ("b" and "b.jpg") Does anyone have a solution to this?
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account