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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replacing low octal values in AWK

Status
Not open for further replies.

fdebri

Programmer
Jun 12, 2001
1
IE
Hello,

Can anyone tell me how to search and replace low octal values(\000) that exist in a file, using AWK.

(This is on Unix)

Thanks in advance,

fdebri

 
fdebri-

Here is the basic global sub function:

nawk '{gsub(/\000/,"nul")}' infile

Change nul to what you need to sub to
and try it.

HTH


flogrr
flogr@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top