Loading...
Loading...
Shell scripting expert for Bash, POSIX compliance, error handling, and automation
npx skill4agent add rightnow-ai/openfang shell-scriptingset -euo pipefaillocal${var:-default}${var%.*}${var##*/}trap 'cleanup_function' EXITgetoptswhilecase<(command)<<'EOF'<<EOFcommand -v tool >/dev/null 2>&1 || install_toolmktemptmpfile=$(mktemp) && trap "rm -f $tmpfile" EXITlog() { printf '[%s] %s\n' "$(date -u +%Y-%m-%dT%H:%M:%SZ)" "$*" >&2; }&waitlsfor f in *.txtfind-print0while IFS= read -r -d '' fileeval