The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
sed query
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
sed query
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
12-08-2006
cskumar
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
cskumar
View Public Profile
Find all posts by cskumar
Find cskumar's past nominations received
Find cskumar's present nominations given