dotfiles/.local/bin/scripts/arg-test
2021-10-22 17:15:09 +02:00

6 lines
133 B
Bash
Executable file

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