dotfiles/bin/queue

12 lines
179 B
Bash
Executable File

#!/bin/sh
LIST=""
for arg in $@; do
if [ -f "$arg" ]; then
LIST="$LIST"$'\n'"$(cat "$arg")"
else
LIST="$LIST"$'\n'"$arg"
fi
done;
echo "$LIST" | shuf | marietje
unset LIST