![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | 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 and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sed substitution | som.nitk | Shell Programming and Scripting | 5 | 03-21-2009 11:39 PM |
| Substitution | Andyp2704 | Shell Programming and Scripting | 6 | 03-11-2009 07:35 AM |
| Difference between "Command substitution" and "Process substitution" | royalibrahim | Shell Programming and Scripting | 3 | 12-15-2008 11:20 AM |
| Substitution using SED | shubhranshu | Shell Programming and Scripting | 2 | 11-11-2008 01:13 AM |
| Bad Substitution | D_Redd74 | Shell Programming and Scripting | 3 | 02-07-2007 05:48 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I am trying to use AWK to replace dallinux02 to dallinux03 everywhere in the servers.txt file and move it over to "awk2".
Here is my script "awk2.awk": HTML Code:
gsub(/dallinux02/, "dallinux03"); print > "awk2" I am trying to run this using the following: HTML Code:
$ awk -f awk2.awk servers.txt |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|