The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
where to specify the field name in SED command
.
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
:
where to specify the field name in SED command
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
07-03-2009
lathavim
Registered User
Join Date: Jun 2009
Posts: 73
Try this.
awk 'BEGIN { FS=OFS="," } /KG/ { $11 = "K" ; print }' filename
lathavim
View Public Profile
Find all posts by lathavim
Find lathavim's past nominations received
Find lathavim's present nominations given