Reputation: 297
I was trying to execute the following commands.
de="hello world"
if [ $de -eq "hi" ]; then
....
....
because of the space between hello and the world, it out put an error. but if I define de="helloworld" it works fine. can you please tell me if there is a way I can use if statement with sentences that have spaces in it?
Upvotes: 1
Views: 1249