Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search and update line??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi,

I have a file x which contains few line.

<.... port=8080 security=on....>

I have to search for the above line where port number is 8080 and update the value of security=off in that line. I have to write this in a shell script.Could anyone please
suggest me how to do so.

Thanks
 
Why can't you just vi the file ?
You wouldn't be trying to hack into web servers would you ?
 
tsk tsk - such lack of trust in your fellow man trunix :) Mike
&quot;Experience is the comb that Nature gives us after we are bald.&quot;

Is that a haiku?
I never could get the hang
of writing those things.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top