Skip to content

Instantly share code, notes, and snippets.

@lionello
Last active May 5, 2017
Embed
What would you like to do?
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