summaryrefslogtreecommitdiffstats
path: root/usr/local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/bin')
-rwxr-xr-xusr/local/bin/slowdownpipe.sh9
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
OpenPOWER on IntegriCloud