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

6 lines
126 B
Plaintext
Raw Normal View History

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