Quote:
|
Originally Posted by anbu23
Code:
number=$(( RANDOM % 21 + 1 ))
word=$( sed -n "$number p" words_list_file )
letters=$(echo $word | wc -c)
letters=$(( $letters - 1 ))
template="$(echo $word | tr '[a-z A-Z 0-9]' '.')"
remaining=$letters
|
what can be used instead of
sed, as i dont know anything about
sed and rather learn shell scripting first and then look at
sed, also just so i can understand this better, the random word file, needs to one word per line and numbered for this to work??
You are a star
Keyvan