Bash
Snippets
Date Iteration
SQL Example: macOSLinuxDB_NAME="journal" TABLE_NAME="otel_logs" START_DATE="2025-01-01" END_DATE=...
Check File Exists
FILE="/etc/iptables/rules.v4" if [ -f "$FILE" ]; then echo "$FILE exists" else echo "$F...
Check Command Exists
if which iptables-save >/dev/null 2>&1; then echo "exists" else echo "empty" fi