Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Shell script



On Wed, 14 Jun 2000, Anthony J. Gabrielson wrote:
>Okay know I don't feel so bad.  For some reason this is not working.  
>My command is ping -c 5 bacon | grep 64 - when I assign it var='ping
>cmd' then echo $var - it echos the command, not the answer I'm
>expecting 5.

Use backticks, not single quotes.
Grave, not acute.

Enlarged version:


      backtick           single quote
   \                                   /
     \                               /
       \                           /
         \                       /
           \                   /


man bash :)

-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org