How would I execute a loop to count each word in a file individually, without using the wc command.
you can use the script below if your words are space seperated. #!/bin/ksh
typeset -i I=0
{ while read line
do
for wort in `echo $line`
do
I=$I+1
done
done } < $1
echo $INo Risk no fun Frank
| « shell script | One More Question » |