Sie sind auf Seite 1von 1

s=$1

echo "The number of words are : "


tr -cs A-Za-z0-9\\047 \\012 <$s | grep '.' -n| tail -n 1| cut -d ':' -f 1
echo "The number of lines are : "
grep -c " " $s
echo "The number of characters are : "
NUMBER=$(tr -dc '[:graph:]' < ui.txt)
echo ${#NUMBER}

Das könnte Ihnen auch gefallen