Hi,

--- On Mon, Dec 14, 2009 at 3:04 PM, Mahalingam Subramaniam
<[email protected]> wrote:
| Sorry, it is not helping me either.
\--

It would greatly help if you pasted your code, rather than the above.

---
| The ultimate aim is to read and count special characters(?) but
pointing to variables of
| alphabet does not solve the issue. Is there any other method by
which it can be resolved?.
\--

That is exactly what the mentioned does:

* Q=0, initializes the counter variable for '?'

* [ "$c" == "?" ] && (( Q++ )), increments the variable Q for every
occurence of '?'.

* echo "Q = $Q", prints the number of occurrences of '?'.

SK

-- 
Shakthi Kannan
http://www.shakthimaan.com
_______________________________________________
To unsubscribe, email [email protected] with 
&quot;unsubscribe &lt;password&gt; &lt;address&gt;&quot;
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to