Shell script

Scott Lanning slanning at buphy.bu.edu
Wed Jun 14 09:36:16 EDT 2000


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).



More information about the Discuss mailing list