-
-
Save bobbicodes/0368c8c768bf25bab918b326f19181aa to your computer and use it in GitHub Desktop.
Simulate typing text in console from file!
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
#!/bin/bash | |
clear | |
sleep 1 | |
cat $1 | while IFS='' read -r line || [[ -n "$line" ]]; do | |
echo -n "$line" | pv -qL 10 | |
sleep .5 | |
echo "" | |
sleep .5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment