Programming and posix - February 2001
February 10, 2001
Solution Symposium
Page 75
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