Content added Content deleted
imported>DrOwl No edit summary |
imported>DrOwl No edit summary |
||
Line 1: | Line 1: | ||
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 =) |
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. |
this is an example use to rename some files. |
Latest revision as of 16:52, 10 October 2005
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[edit]
this is an example use to rename some files.
ls [OriginalBit*] | awk '{print "mv " $1 " --$1}' | sed 's/--OriginalBit/NewBit/g' > rename.temp.sh | chmod u+x rename.temp.sh | ./rename.temp.sh
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.