Skip to content

Instantly share code, notes, and snippets.

@melaniehoff
Created July 6, 2020 22:46
Show Gist options
  • Save melaniehoff/fd360996c9583d190e00e217d6081524 to your computer and use it in GitHub Desktop.
Save melaniehoff/fd360996c9583d190e00e217d6081524 to your computer and use it in GitHub Desktop.
#!/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