DigitaldogmaMain Page | About | Help | FAQ | Special pages | Log in

SED one-liners

String multiple sed statments together with:

sed -e 's/^.*RQGETSTR(//;s/,.*//;s/ //g'

Change all "foo" to "bar" leave the remaining filename the same:

for i in *;do y=`echo $i | sed -e "s/foo/bar/"`;mv "$i "$y";done

Links:

http://www.student.northpark.edu/pemente/sed/sed1line.txt

Good list of commonly used sed commands.

Retrieved from "http://digitaldogma.org/index.php/SED_one-liners"

This page has been accessed 740 times. This page was last modified 16:12, 7 January 2005.


Browse
Main Page
Life Events
Tech Stuff
Photo Gallery
Current Resume
MP3 Database
Recent changes
Random page
Donations
Edit
View source
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...

Valid XHTML 1.0 Transitional

Viewable With Any Browser

Powered by MediaWiki