Brian Baquiran wrote:
for i in * ; do j=`echo $i|sed -e "s/%20/ /g"`; mv $i $j; done
As Benj pointed out, you have to quote $i and $j. for i in * ; do j=`echo $i|sed -e "s/%20/ /g"`; mv "$i" "$j"; done I should have tested that before posting it. sorry. 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]
