The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
awk: find and replace in certain field only, help needed
.
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
:
awk: find and replace in certain field only, help needed
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
08-31-2007
jkl_jkl
Registered User
Join Date: Aug 2007
Posts: 46
Quote:
Originally Posted by
ghostdog74
Code:
awk 'BEGIN{OFS=FS="|"}$3==100{$3=2000}{print}' file
This is a nice reply(more generic) , worked for me :-) Thanks :-)
jkl_jkl
View Public Profile
Find all posts by jkl_jkl
Find jkl_jkl's past nominations received
Find jkl_jkl's present nominations given