blob: ac76d0d9026201bcf1ef23f745624d509460f768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
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
|