![]() |
|
|
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 |
| Formatting Substitution Command Not Working in vi | ERPKEN | UNIX for Advanced & Expert Users | 11 | 05-06-2007 10:36 PM |
| complex command substitution | spopuri | Shell Programming and Scripting | 5 | 05-24-2006 09:37 AM |
| Preserving space during command substitution | Sabari Nath S | UNIX for Dummies Questions & Answers | 1 | 10-04-2005 10:16 AM |
| sed substitution problems | nir_s | Shell Programming and Scripting | 2 | 02-10-2005 04:58 AM |
| Substitution of last command | ghazi | Shell Programming and Scripting | 6 | 01-16-2005 07:06 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
command substitution problems with csh using grep
I am trying to set a command into a variable in a csh script using command substituion with ``. I am having a problem with ps command combined with grep. The command is as follows (shows processes running with the word gpts in them).
/usr/ucb/ps axwww | grep gpts this works fine at the command prompt but I get an error "set: No match" when trying to use it in a csh script as follows set PS1=`/usr/ucb/ps axwww | grep gpts` echo $PS1 It works fine for other commands such as ls -la | wc, entered as follows set LIS=`ls -la | wc` echo $LIS Anyone with any ideas with what's wrong with the first command? I have tried substituting a variable for gpts but that didn't work either |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|