andieje
asked on
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
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
which shell are you using?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.