Bash Help: Renaming all files in a Directory

Thom Paine painethom at gmail.com
Sat Jul 22 02:09:42 UTC 2006


>
> A little while loop would be one way to do this:
>
> ls "Family Pic"*.jpg | while read i; do mv "$i" $(echo $i | tr " " _)
>


I tried this command and it gives me a > prompt and sits there. Am I
doing something wrong?

And thanks to all the replies.

-- 
-=/>Thom




More information about the users mailing list