Results 1 to 3 of 3
# Scripts to print user information who currently login, current date & time
#
clear
echo "Hello $USER"
echo "Today is \c ";date
echo "Number of user login : \c" ...
- 09-26-2010 #1
script command issuse
# Scripts to print user information who currently login, current date & time
#
clear
echo "Hello $USER"
echo "Today is \c ";date
echo "Number of user login : \c" ; who | wc -l
echo "Calendar"
cal
exit 0
whats wrong with this script? this is what i get without the calender
Today is \c
Sun Sep 26 17:44:05 EDT 2010
Number of user login : \c
- 09-27-2010 #2Linux Newbie
- Join Date
- Mar 2009
- Posts
- 228
From the echo manpage:
So commands should look like:-e enable interpretation of backslash escapes
Code:echo -e "Today is \c ";date
- 09-27-2010 #3


Reply With Quote