Home » Infrastructure » Unix » to change contents of a file and save using sed/awk
to change contents of a file and save using sed/awk [message #98074] Tue, 20 January 2004 23:53 Go to next message
etryblr
Messages: 28
Registered: December 2003
Junior Member
1.How do I change the contents of a file and save it in the same file, using awk/sed?

2.How do I replace exact matches in a unix file , globally?
ex: if a file has abc and abchjkhkj, i want to replace just abc(first string)

thnks in adv
Prashanth
Re: to change contents of a file and save using sed/awk [message #98076 is a reply to message #98074] Wed, 21 January 2004 08:15 Go to previous message
andrew again
Messages: 2577
Registered: March 2000
Senior Member
See http://www.unix.com/showthread.php?s=998010f6a1d7a79264dd2d75e46a8df6&threadid=1505&highlight=find+name+grep
Previous Topic: Capture a filename from UNIX to insert into a table
Next Topic: Uploading files from Client (NT) Machine to UNIX server
Goto Forum:
  


Current Time: Sat Jan 16 11:14:40 CST 2021