> Hello all,
> I have a simple bash shell script with this line:
> if [ $1 != "\n" ]; then
> do something
> print an error
> But whenever I run it and the if is true (print the error) is also
> says [: !=: unary operator expected ???
> != is a binary operator, requiring two arguments (says so in the bash
> man page.
> What am I missing??
Gary Rumble The opinions expressed are mine and don't