like
[[ -s file ]]
[[ -z string ]]
preferably on the web.
I looked on the ldp site but couldn't find them
The man page (man [
) is helpful but I am looking for a more compact list.
like
[[ -s file ]]
[[ -z string ]]
preferably on the web.
I looked on the ldp site but couldn't find them
The man page (man [
) is helpful but I am looking for a more compact list.
You didn't specify the shell you're using, but e.g.
man bash
/CONDITIONAL EXPRESSIONS
You can get a list of the bash
builtin file and string test operators by typing help test
at the shell prompt.