Skip to content

Instantly share code, notes, and snippets.

@imtapps
Last active August 29, 2015 14:11
Show Gist options
  • Save imtapps/60a4d1506fa48d12dc74 to your computer and use it in GitHub Desktop.
Save imtapps/60a4d1506fa48d12dc74 to your computer and use it in GitHub Desktop.
#!/bin/bash
while :;
do
temp=/tmp/outfile
true > $temp
for FILE in *.txt; do
if [[ $(tail -n 1 $FILE) != Finished* ]];
then
echo -en "$(ls -lA $FILE)\n" >> $temp
fi
done
clear
cat /tmp/outfile
sleep 4
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment