Hi Folks, While doing Shell Scripting, If i need to alter/delete a line or a part there-of, is there any direct way, or do I wite all the contents into a new file, ignoring the "to-be-deleted" line / write the modified line....
You can use sed for that. Its suppossed to be the best for text manipulation. Perl is what I prefer anyways. To delete a line a simple command is sed -e 'nd' filename. where n is the line number.
Visit this guide from LDP: http://www.linuxdoc.org/LDP/abs/html/index.html
Its good for startup, has a lot of examples.
Regards, Mayur
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp