home/.bin/rep
Salt dcb2e708d2 Added simple command repetition script
Somebody's probably already made one but it took me all of ten minutes so whatever.
2017-08-10 16:44:35 -05:00

13 lines
152 B
Bash
Executable File

#!/bin/bash
if [ -z "$@" ]; then
printf "rep: no commands specified\n"
exit 1
fi
while :; do
for command in "$@"; do
$command
done
sleep 1
done