From 1729d6eef367ba8e24edb69ccba703db515fe073 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Thu, 17 Sep 2026 10:07:09 +0200 Subject: Add bash stuff --- bash.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'bash.md') diff --git a/bash.md b/bash.md index 8aa926c..c3fe43a 100644 --- a/bash.md +++ b/bash.md @@ -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 -- cgit v1.2.3