The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: sed query
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 12-08-2006
cskumar cskumar is offline
Registered User
  
 

Join Date: Oct 2005
Posts: 67
try this one

awk '{if (match($0,"USD")){print $1 $2 $3,"\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",$4} print $0}' file > newfile

I hope USD will come only in Debit Amount: field.

Regards,
cskumar