LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2008, 03:51 AM   #1
sonyparekh
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
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.
 
Old 09-24-2008, 03:58 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware and Debian
Posts: 517

Rep: Reputation: 108Reputation: 108
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
 
Old 09-24-2008, 04:09 AM   #3
sonyparekh
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Got it Thanx

Last edited by sonyparekh; 09-24-2008 at 04:19 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration