hi,
can anyone give me idea how to do this please as i am new to shell scripting
write a shell script(varcount) that takes a c++ program and counts the number of words which could be a valid c++ variablename.
thanks for the help in advance

Hi siri_lito,

The rules of this forum are that you need to show an attempt before we can point you in the right direction. What have you done so far?

As for shell, each has its unique characteristics. I've used sh, ksh, and bash, and find that once you learn one, it's a small step to the others.

As for language, I'd use Perl any day, since it seems to be readily available on all systems.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.