\\$1 in a double-quoted string expands as literal backslash + $1 (the script's first positional arg). With set -u and no CLI args (IP entered via read), this fails. \$1 correctly escapes the dollar sign, producing a literal $1 for awk on the remote host. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2.4 KiB
Executable File
2.4 KiB
Executable File