dotfiles/.local/bin/scripts/arg-test

5 lines
103 B
Plaintext
Raw Normal View History

#!/bin/sh
2021-07-17 20:48:33 +00:00
echo "$# Args: $@"
echo "${@:-default}" | sed 's/\(\w\+\)/\1+sed/g'
2021-04-21 17:51:56 +00:00
echo "Last arg: ${@:$#}"