Unix Shell - Want to edit the File using the Script

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > May 2007 > Want to edit the File using the Script





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Want to edit the File using the Script
Nikunj Khakhar

2007-05-24, 7:20 am

Hi Gurus,

I want such trype the script/string by which , i can grep particular
word and wanted to delete it or wanted to change parameter on the
specific file using script.

for example

i want script which open test.txt file which are having following
content.

abc
def
xyz
ghi

i want to remove the 'xyz' from file and want to add the 'www' by
script

i want it in following format

abc
def
www
ghi

can any body give any string/script for automation of our work.

thanks in advance.

Regards,
Nikunj Khakhar.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com