diff options
Diffstat (limited to 'bash.md')
| -rw-r--r-- | bash.md | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -37,9 +37,16 @@ Loop over lines of file: * `-z`: is empty string * `-n`: non-empty string * `-f`: is regular file +* `-d`: is a directory * `$A == $B`: string equality, accepts globs * `$A != $B`: string inequality +### Numeric + +* `-eq`, `-ne`: equal, not equal +* `-gt`, `-lt`: greater than, less than +* `-ge`, `-le`: greater than or equal, less than or equal + ## Heredocs cat << EOF > file |