Topic
  • No replies
SystemAdmin
SystemAdmin
232 Posts

Pinned topic Character Count in script

‏2013-04-03T02:24:50Z |
#!/bin/ksh
read name
read mobile

echo $name | wc -m
Nunberchar=`echo $name |wc -m`
echo $Nunberchar
I write something above, however the char count is wrong, it always count the $ , how to avoid it ?