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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -