Search Results

Search: Posts Made By: cyberfrog
20,493
Posted By cyberfrog
just tried it but still get the same message. ...
just tried it but still get the same message. its almost as if it doesn't like it when I don't input an argument?
20,493
Posted By cyberfrog
: unary operator expected
Hiya all,
Why do I get a :unary operator expected when I try to put a condition statement in my shell script (sh) like so and how to fix?

if [$1 = "mystring" ]; then

echo "say hello"
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 02:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy