diff options
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/bin/slowdownpipe.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/bin/slowdownpipe.sh b/usr/local/bin/slowdownpipe.sh new file mode 100755 index 0000000..88be614 --- /dev/null +++ b/usr/local/bin/slowdownpipe.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# Illustrates use of a while loop to read a file + +cat - | \ +while read line +do + echo "$line" + sleep 0.005 +done |