bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Real easy questions. Please answer


From: eatsubway
Subject: Real easy questions. Please answer
Date: Thu, 24 Sep 2009 21:24:04 -0700 (PDT)

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]