×
Create a new article
Write your page title here:
We currently have 3,185 articles on s23. Type your article name above or click on one of the titles below and start writing!



s23
3,185Articles
Revision as of 16:52, 10 October 2005 by imported>DrOwl
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.