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

9 lines
182 B
Bash
Executable File

#!/bin/sh
{
echo "$# Args: ${@:-DEFAULT}"
#echo "Starred: $*"
#echo "${@:-default}" | sed 's/\w\+/\0-w/g'
for last; do true; done
echo "Last arg: $last"
} | tee /tmp/args$(date +%s)