I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 396 votes ~ 7 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.:
#14 Re: Easily renaming multiple files. Posted by Swynndla (210.54.xx.xx) on Thu 2 Jun 2005 at 22:09 I have had trouble with for loops and spaces for other things, eg when cat'ing files, the following won't keep spaces between words: for i in `cat file`; do blah blah "$i"; done So I use the following instead: cat file | while read i; do blah blah "$i"; done And that works as "read" reads in a line at a time. Now I tend to use this method for everything and hardly ever use "for".
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account