LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 02: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, 02:58 AM   #2
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
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, 03: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 03:19 AM.
 
  


Reply



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 06:01 PM.

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
Open Source Consulting | Domain Registration