#!/bin/bash # # a program that propts for a name, counts the characters # and outputs the results echo -n "Please enter your name " read name; chars=$((`echo $name | wc -c` - 1)) echo "Your name is $name it has $chars characters"