Created
July 6, 2020 22:46
-
-
Save melaniehoff/fd360996c9583d190e00e217d6081524 to your computer and use it in GitHub Desktop.
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 - | |
#title :incantation.sh | |
#description :This script will sequentially print a directory. | |
#author :Matthew Ragan & Zoe Sandoval | |
#date :20200702 | |
#============================================================================== | |
# Bash File to Sequence Printing Files | |
# For 'each' file ending .txt that is found in the directory | |
# where the script is called from... | |
# "do" | |
# print each using the "cat" command | |
# then using the "sleep" command, | |
# wait (1) second before printing the next | |
for each in $(find . -name "*.txt") | |
do | |
cat $each | |
sleep .5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment