Files
hpr_website/www/eps/hpr2011/hpr2011_demo3.sh

8 lines
171 B
Bash
Executable File

#!/bin/bash
echo "Output file: /tmp/$$"
for i in {1..10}; do
w=$(shuf -n1 /usr/share/dict/words)
w=${w%\'s}
echo "$i: $w"
done | tee /tmp/$$ | sed -e 'N;1,5D'