![]() |
|
|
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 |
| why is it workin for 1 file , but not for multiple files? | somanath Patrud | Shell Programming and Scripting | 1 | 01-23-2008 08:04 AM |
| recv() not workin fine..... | mridula | IP Networking | 2 | 10-23-2005 03:40 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
rsh within awk is not workin
cat input.sh | awk '
{ cur1=tolower($1) cur2=tolower($2) rsh $cur1 report | grep $cur2 } ' hi, Have a look at the above code, the input.txt file contains two words in each line with space as delimiter, the first word is computer name and the 2nd word is file name in that computer, i tried to do rsh within awk command, i get error as also this is a shell script and using awk command.. ./madh1.sh: line 1: !#/bin/bash: No such file or directory awk: cmd. line:13: rsh $cur1 report | grep tree | grep $cur2 awk: cmd. line:13: ^ syntax error awk: cmd. line:13: rsh $cur1 report | grep tree | grep $cur2 awk: cmd. line:13: ^ syntax error printing the string $cur1 and $cur2 works perfectly, but rsh is not working.. also if i do rsh outside of awk it works perfectly.. can you please help me.. thanks in advance, regards, geeko. Last edited by geeko; 10-05-2007 at 02:04 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|