BASH script quote problem
Michael A. Cleverly
michael at cleverly.com
Thu Nov 2 15:13:11 MST 2006
On 11/2/06, Andy Bradford <amb-plug at bradfords.org> wrote:
> Thus said Scott Morris on Thu, 02 Nov 2006 14:59:49 MST:
> > Any thoughts on how this could be accomplished?
> How about:
> RECIP=scottmmorris at hotpop.com
> ls | mail -s "Running on `hostname` - sent" "$RECIP"
ls | mail -s "Running on $HOSTNAME - sent" $RECIP
since $HOSTNAME is a bash built-in variable.
More information about the PLUG