Skip to content

Instantly share code, notes, and snippets.

@lionello
Last active May 5, 2017 12:19
Show Gist options
  • Save lionello/c7dc1ed0990025a51b1215428958f10d to your computer and use it in GitHub Desktop.
Save lionello/c7dc1ed0990025a51b1215428958f10d to your computer and use it in GitHub Desktop.
Print contents of a text file to stdout, slowly...
#!/bin/bash
echo -e $'\e[2J\e[32m'
while true; do
while IFS= read -rn1 i; do
printf %s "${i:-$'\n'}"
sleep 0.$(($RANDOM / 20000))
done < objects.txt
for i in {1..40}; do echo; sleep 0.1; done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment