diff options
| author | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-09-17 10:07:09 +0200 |
|---|---|---|
| committer | Marcin Chrzanowski <m@m-chrzan.xyz> | 2026-09-17 10:07:09 +0200 |
| commit | 1729d6eef367ba8e24edb69ccba703db515fe073 (patch) | |
| tree | d6f432efef4ec862ff41d4c7279e81071efa066a /bash.md | |
| parent | b763b60e3385e9027fe3cbeaa006f1c48ddef756 (diff) | |
Add bash stuff
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 |