April 3, 2002
Solution Symposium
Page 76
hp e3000
programming
and posix
posix shell command substitution
• `command` (backquotes) or $(command)
• replaces the command substitution expression with the
stdout output from the execution of command
• TIMESTAMP=$(/bin/date)
echo "$TIMESTAMP log event" >>logfile