Created
October 25, 2021 08:53
-
-
Save yinkar/b4190d92d880c3f6e434606691ea81ca to your computer and use it in GitHub Desktop.
watch.sh
This file contains 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
#!/bin/bash | |
buff=$( cat "$1" ) | |
while : | |
do | |
if [ "$( cat "$1" )" != "$buff" ]; then | |
cat "$1" | |
echo -e "\r\n" | |
buff=$( cat "$1" ) | |
fi | |
sleep 1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment