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 -->
  #7 (permalink)  
Old 02-28-2007
c2b2 c2b2 is offline
Registered User
 

Join Date: Dec 2006
Posts: 29
Try this if you have a very big file (say 100k records)

cut -c1-9 file > tempfile1
cut -c10-15 file | tr -cd "\n" "X" > tempfile2
cut -c15- file > tempfile3

paste -d"" tempfile1 tempfile2 tempfile3
Reply With Quote