LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What is \c? (https://www.linuxquestions.org/questions/linux-newbie-8/what-is-%5Cc-671992/)

sonyparekh 09-24-2008 02:51 AM

What is \c?
 
i was trying to run a shell script..

# Script to print the user infortmation who currently login , current time & date

clear
echo "Hello $USER"
echo "Today is \c";date
echo "Number of user login: \c" ; who | wc -l
echo "Calendar"
cal
exit 0


I am unable to follow the \c and when i execute the script, \c prints as it is.

ChrisAbela 09-24-2008 02:58 AM

clear
echo "Hello $USER"
echo -e "Today is \c";date
echo -e "Number of user login: \c" ; who | wc -l
echo "Calendar"
cal
exit 0

sonyparekh 09-24-2008 03:09 AM

Got it :) Thanx :)


All times are GMT -5. The time now is 01:15 PM.