From S23Wiki
Jump to: navigation, search

oki main page looks all crazzy, here is an example of awk usage (ok also sed and ls too) if any one has suggestions for a better way to do this please add a new version =)

File Rename

this is an example use to rename some files.

ls [OriginalBit*] | awk '{print "mv " $1 " --$1}' | sed 's/--OriginalBit/NewBit/g' > | chmod u+x | ./ 

of course this leaves the file behind. if you are goign to use this i suggest you check the output after sed, before running the script.