sry i have a stupid question. I have a variable and need to know how many items are in it.
for example:
variable="abc xyz foo"
what program can i call to print out 3
right now im doing this...
Counter()
{
echo $#
}
Counter $IDs
but that just seems stupid
--
View this message in context:
http://www.nabble.com/Real-easy-questions.-Please-answer-tp25606372p25606372.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.
