Shell script to edit a file
Hi Experts,
I am new to shell scripting.I have a requirement, in which I have to fill a value of a parameter using a script.
for example:
I have a file ("testfile.txt") whose contents are:
================================
line1.color: red
line2.size:10
line3.path:
line4.display:default
================================
In the above content of file, I have to fill the third parameter with some value say "/usr/dir". Please help me in writing a script to fill that value.
Thanks in advance.
Last edited by kaash_m31; 06-02-2008 at 05:20 AM.
|