Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Read file and replace..shell script
Name: nishad Date: May 25, 2003 at 11:20:56 Pacific OS: Unix CPU/Ram: AIX
Comment:
hi, i have an entry: FileName=/home/mqm/adr10098/sample.dat in a file. I want to open this file, search for "FileName=" and then replace the value with someother value(eg: /home/mqm/adr10098/another.dat) using unix shell script.
Summary: Yes, but that would not do what I am trying to do. I want folks to edit a file and the shell script to read the options from the file and do its work. Th script builds an IPSec keys file with securit...
Summary: Ultimatly Perl or Python would be better suited for such a task. I typically use Perl. They are both more extensible and powerful. But in computing you get what you ask for and you said shell:-) So I ...