slowdownpipe.sh 122 Bytes
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2 3 4 5 6 7 8 9
#!/bin/sh
# Illustrates use of a while loop to read a file

cat - |   \
while read line
do
	echo "$line"
	sleep 0.01
done