Other errata is included in this section
# Date stamping files
# format is :
# touch -t yyyymmddhhmi.ss filename
touch -t 199810311530.00 hallowfile
# lowercase functions (ksh)
typeset -u newfile=$filename
# date formatting, yields 112098 for example
date '+%m%d%y'
# display a calendar (Linux / Solaris / AIX)
cal
# route output to both test.txt and std output
./runbackup | tee test.txt
# sleep for 5 seconds
sleep 5
# send a message to all users
wall "lunch is ready"
# edit file, which displays at login time (message of the day)
vi /etc/motd
# edit file, which displays before login time (Solaris)
vi /etc/issue
|
|