1
0
Fork 0
mirror of https://github.com/kastdeur/dotfiles.git synced 2024-11-16 08:33:30 +01:00
dotfiles/bin/queue

12 lines
179 B
Text
Raw Normal View History

2016-09-21 01:22:14 +02:00
#!/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