![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Query related to scp command | sureshg_sampat | Shell Programming and Scripting | 2 | 12-03-2007 05:59 AM |
| sed related query | gopsman | Shell Programming and Scripting | 1 | 11-30-2007 09:03 AM |
| Query related to for i in `cat $TEMP_DIR/country.txt | sureshg_sampat | Shell Programming and Scripting | 1 | 08-31-2007 07:58 AM |
| Query related to #!/bin/sh | sureshg_sampat | Shell Programming and Scripting | 2 | 02-08-2007 05:54 AM |
| Date change related query | franklo | UNIX for Dummies Questions & Answers | 2 | 09-04-2002 09:41 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
hi,
I have to extract a column from a file and then updated that column..?? Now i can use wak for extracting it and then how to update it.. $ awk' {print $5}' input_file Can i use sed command here piping it to the output from the awk command.. |
|
||||
|
Hi,
Use '~' to match the values, The one liner will be: awk '{if($5~"Hi") $5="bye"; print}' input_file Regards, Vinod. |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|