Shell script to edit a file
I am new to shell scripting.I have a requirement, in which I have to fill a value of a parameter using a script.
I have a file ("testfile.txt") whose contents are:
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.
If you have no clue then best start here I think:
Sounds like a job for 'sed' (I can't see how the shell would do it all - then again I'm definitely no shell guru).
This sounds like homework to me, so I'll say: read the sed manual
|All times are GMT -5. The time now is 08:00 PM.|