Rename without rename PDF Print E-mail
User Rating: / 1
PoorBest 
Written by Bart Dorlandt   
Monday, 14 April 2008 00:28

Here is a one-liner to rename everyfile in the current directory without using the command rename. (this command isn't available on OpenBSD, so I had to use this solution)

for i in ./* ; do mv "$i" `echo "$i" | sed 's/ /_/g'`; done

Last Updated on Sunday, 13 July 2008 17:06
 


Related items: