BASH script quote problem
scottmmorris at hotpop.com
Thu Nov 2 22:22:33 MST 2006
Michael A. Cleverly wrote:
> 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"
> Or even:
> ls | mail -s "Running on $HOSTNAME - sent" $RECIP
> since $HOSTNAME is a bash built-in variable.
Rock on, thanks. That helped. You all rule.
More information about the PLUG