escape characters not escaping
Hi, this...
[root@jekyll root]# cat won
echo
echo "Date and Time: \c "
date
echo "Number of users on the system:\c"
who | wc -l
echo "Your directory:\c"
pwd
echo
produces this...
[root@jekyll root]# sh won
Date and Time: \c
Fri Apr 9 19:58:01 NZST 2004
Number of users on the system:\c
4
Your directory:\c
/root
In the book I'm using \c should prevent the carriage return.
I'm using a bash shell.
rh9.0
any thoughts appreciated.
Bob
|