I am trying to count the seize of an parameter without the numbers and spaces, like if someone types in "Hello player1" it has to echo "11 characters". I have tried using ${#value} but this counts numbers and spaces.
if [ -z "$1" ]
then
echo "write at least 1 word"
else
for value in "$@"
do
echo "${value//[[:digit:]]/}"
done
echo ${#value}
fi
as you can see in the image it counts only the last parameter and counts the numbers what I don't want