Elky Grrrr... wrote:

ariz, how do you do it using bash???

--- Ariz Jacinto <[EMAIL PROTECTED]> wrote:

you can do that in perl, bash, etc, but here's a
quick and dirty using php

Easy! Here's a one-liner to fix the filenames of all files in a directory:

for i in * ; do j=`echo $i|sed -e "s/%20/ /g"`; mv $i $j; done

HTH
Brian





_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Fully Searchable Archives With Friendly Web Interface at http://marc.free.net.ph

To subscribe to the Linux Newbies' List: send "subscribe" in the body to [EMAIL PROTECTED]

Reply via email to