About
Pricing
Community
Teams
Start Free Trial
Log in
andieje
asked on
3/5/2011
special characters in linux - when is \t a tab or the time
Hi
I'm not sure in linux how the difference between special characters work. When is \t a tab or the time. If i wanted to output a tab i could write
echo $'\t'
but if i wanted to set the shell prompt to show the time i would write
PS1='\t'
Why are they treated differently when both times i am creating a string?
thanks
Linux
3
2
Last Comment
Brian Utterback
8/22/2022 - Mon
omarfarid
3/6/2011
which shell are you using?
ASKER CERTIFIED SOLUTION
ravenpl
3/6/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Brian Utterback
3/6/2011
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy