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

7 lines
133 B
Plaintext
Raw Normal View History

#!/bin/sh
2021-10-22 15:15:09 +00:00
{
2021-07-17 20:48:33 +00:00
echo "$# Args: $@"
2021-10-16 17:07:00 +00:00
echo "${@:-default}" | sed 's/\(\w\+\)/\1-w/g'
#echo "Last arg: ${@:$#}"
2021-10-22 15:15:09 +00:00
} | tee /tmp/args$(date +%s)