Skip to content

Instantly share code, notes, and snippets.

@mergeweb
Created January 31, 2017 19:50
Show Gist options
  • Save mergeweb/b7a083525fc27651448fda6d93b25cc2 to your computer and use it in GitHub Desktop.
Save mergeweb/b7a083525fc27651448fda6d93b25cc2 to your computer and use it in GitHub Desktop.
while [ ! "$(sed -n "/done/p" "$LOGFILE")" ];
do
if [ "$LINE" != "$(tail -n 1 "$LOGFILE")" ]; then
LINE=$(tail -n 1 "$LOGFILE")
echo -en $LINE"\n"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment