um-mode/bash/next/args.sh
2024-01-11 10:52:52 -08:00

12 lines
198 B
Shell
Executable file

# why can't i use bash if statement, before appending an empty arg string?
last=`ls | egrep '^\d.*\.md|txt' | tail -n 1`
if ($* != "")
last=last + $*;
awk '
{
print $0
}
END {print NR}' last