Skip to content

Instantly share code, notes, and snippets.

@stevenjack
Created June 18, 2014 11:19
Show Gist options
  • Save stevenjack/ea54996562df11595bb2 to your computer and use it in GitHub Desktop.
Save stevenjack/ea54996562df11595bb2 to your computer and use it in GitHub Desktop.
echo "Removing file.."
rm -rf $1
while [ ! -f $1 ]
do
echo "File not available, sleeping..."
sleep 1
done
echo "File available, output below: \n"
tail -f $1
@stevenjack
Copy link
Author

You can just use tail -F the achieve the same result.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment