Skip to content

Instantly share code, notes, and snippets.

@jumblies
Created August 3, 2018 10:16
Show Gist options
  • Save jumblies/a0a95c74964fd6c089afdf38e23ec028 to your computer and use it in GitHub Desktop.
Save jumblies/a0a95c74964fd6c089afdf38e23ec028 to your computer and use it in GitHub Desktop.
slow cat of files
#!/bin/sh
# A program to slowly cat file or standard input.
if [ "$1" ] ; then
file="$1"
else
file="-"
fi
cat "$file" | while read line ; do
echo "$line"
sleep 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment