Gnuru.org
Productive Linux


Subscribe

 Subscribe via Feedburner in a reader

Enter your email address:

Delivered by FeedBurner


Login
Login:
Password:



Don't have an account?
Sign up to Gnuru.org
Forgot your password?

Adding Text To Several Files
16 March 2009 @ 13:06 GMT
by Paul

Here's a way to a line of text to all files in a directory:

 sed '
/text on previous line/ a\
text to be inserted after
' files

Red Hat Certified Technician & Engineer (RHCT and RHCE) Training Guide and Administrator's Reference

Tags: text sed


Leave a comment:

Are you human?