sed -i '1i\<cfabort>' $f
It will add a '<cfabort>' to the first line of a file. Now, we really want to do it to the whole directory of files:
for f in $(ls); do sed -i '1i\<cfabort>' $f ; done
With a little side of applesauce...
©2006 Shannon Eric Peevey
No comments:
Post a Comment