Created
June 18, 2014 11:19
-
-
Save stevenjack/ea54996562df11595bb2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can just use
tail -Fthe achieve the same result.