aboutsummaryrefslogtreecommitdiffstats
path: root/tools/words
blob: 045c45483df20047f7a36fa5684f79e3f6478a5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e

if [ "$#" -ne 0 ]; then
    echo "Usage: $0"
    echo ""
    echo "Echo each whitespace-separated word in stdin on a new line."
    exit 1
fi

i=0
for word in $(cat); do
    echo "$word"
done