New to Scripting question
I have this script:
#!/bin/bash echo -n "Type a line:" read input echo "You entered" $input A sample run for the above script: Type a line: linux is great !! You entered linux is great !! The problem is that the read command ignores all the tab characters that I enter. Is there a way to accept and display the used input exactly the way it has been entered ? |
Unfortunately the earlier post did not show the tab characters that were present when I typed "linux is great". There were a few tabs before the word linux.
Sorry if the earlier post was confusing. Thanks. |
echo "You entered $input"
|
All times are GMT -5. The time now is 03:00 PM. |