8 lines
171 B
Bash
8 lines
171 B
Bash
|
|
#!/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'
|