The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



Thread: replace chars,
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 02-27-2007
matrixmadhan matrixmadhan is offline
Technorati Master
 

Join Date: Mar 2005
Location: k-tier distributed caching
Posts: 2,736
something like this,
to replace in between lines with a specific character,

Code:
>cat file
this is important
>awk ' sub( substr($0, 6, 2), "x", $0) ' file
thx is important
Reply With Quote