home/.bin/rep

13 lines
152 B
Plaintext
Raw Normal View History

#!/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