dotfiles/.local/bin/scripts/arg-test
2021-04-21 19:51:56 +02:00

5 lines
126 B
Bash
Executable file

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