![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| whacky email idea | [MA]Flying_Meat | OS X (Apple) | 1 | 03-23-2004 10:35 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
whacky punctuation dealies
Say I have a command that looks like this:
host=$(/usr/bin/host xxx.xxx.xxx.xxx) What is the significance of the $() I know what happens when I don't include them, and I know what happens when I do, but... Why doo it woik wit $() Sorry for the lame question |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
do 'man ksh' and search for 'Command Substitution'
|
|
#3
|
||||
|
||||
|
Quote:
|
|
#4
|
|||
|
|||
|
D'OH!
Thanks for the quick responses. I was aware of the backquote method (aka "old-style") and didn't think to check the man page. That'll larn me. |
|||
| Google The UNIX and Linux Forums |