![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Change 'which' file is used | JJ07 | UNIX for Dummies Questions & Answers | 1 | 01-05-2008 09:42 AM |
| How to change the file name | rp1982 | UNIX for Dummies Questions & Answers | 2 | 11-29-2007 09:49 PM |
| Change format to file II | DebianJ | UNIX for Advanced & Expert Users | 0 | 03-07-2006 11:25 AM |
| How to change this file with SED? | bejgirl | Shell Programming and Scripting | 4 | 01-03-2006 06:23 AM |
| Help with multiple file rename - change case of part of file name | steve7 | UNIX for Dummies Questions & Answers | 7 | 06-30-2005 10:41 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#15
|
|||
|
|||
|
One more way of doing it man, using gsub in awk
Quote:
Gaurav Last edited by gauravgoel; 03-07-2006 at 02:35 AM. |
| Forum Sponsor | ||
|
|
|
#16
|
|||
|
|||
|
Quote:
Code:
awk '{sub("INI_TEST YES","INI_TEST NO"); print}' f2.txt
Code:
ruby -i -pe 'sub(/(INI_TEST )YES/,"\\1NO")' file.ini |
|||
| Google The UNIX and Linux Forums |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|