dotfiles/.local/bin/scripts/arg-test
2021-07-17 22:48:33 +02:00

4 lines
103 B
Bash
Executable file

#!/bin/sh
echo "$# Args: $@"
echo "${@:-default}" | sed 's/\(\w\+\)/\1+sed/g'
echo "Last arg: ${@:$#}"