![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| remsh doesn't work | som.nitk | UNIX for Advanced & Expert Users | 4 | 06-16-2009 10:49 AM |
| remsh + HPUX | belfastbelle | HP-UX | 3 | 09-29-2008 12:11 PM |
| How To Run AWK via Remsh? | Korn0474 | Shell Programming and Scripting | 6 | 09-17-2008 12:17 AM |
| remsh | kazanoova2 | UNIX for Dummies Questions & Answers | 3 | 12-21-2004 10:39 AM |
| remsh and run script | bugggg | Shell Programming and Scripting | 1 | 11-13-2002 05:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How To Grep Via REMSH
Well I didn't think this would be so complicated when I started it but, well, here we are.
![]() I'm trying to REMSH to other servers and run a grep command. Now this works just fine until the item I'm grepping for has whitespaces in it and then UNIX gets stubborn. Normally one would grep for a criteria with whitespaces simply by putting the item in quotes like this: grep "Hello World" file.txt But add in the REMSH command: remsh server grep "Hello World" file.txt and suddenly you get an error message: grep: can't open World Argh! Now the only way I have found to get around this is to add a backslash in front of the white space like this: remsh server grep "Hello\ World" file.txt But the keyword is going to be input by end users and it's not reasonable to ask them to put backslashes in front of all their spaces. Anybody have any ideas? ![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|