ak-lab-4/test.sh

19 lines
221 B
Bash
Raw Permalink Normal View History

#!/bin/sh
if [ -z "$1" ]; then
echo "Error: no script supplied"
echo "Usage: $0 path/to/testing/script"
exit 1
fi
while read l; do
if [ -z "$l" ]; then
continue;
fi;
echo "$ $l";
$($l);
echo -e ""
done < $1