Added simple command repetition script

Somebody's probably already made one but it took me all of ten minutes so whatever.
This commit is contained in:
2017-08-10 16:44:35 -05:00
parent 18e7c56ab8
commit dcb2e708d2
2 changed files with 18 additions and 2 deletions

12
.bin/rep Executable file
View File

@@ -0,0 +1,12 @@
#!/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