shell - How to get input from command line in a simple bash file? -


I think this is the worst error I have ever seen. I have written what I have seen here too:

But constantly I get an error. My plan is to know how the read command works but it seems to be a crappy error in my code or terminal. I wonder if anyone has seen similar problems? / code> #! / Usr / bin / bash echo "plz enter" Read the text echo "You entered $ text" Transcript $ text echo "$ text"

Error:

 < Code> $ Test.sh plz b: is not a valid identifier $ $ / <>   

You can not notepad ++: edit> gt; Can also convert the end of the line format. EOL conversion & gt; Unix , then save and run the file.

Comments

Popular posts from this blog

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -