[ale] Bash script question

Bob Kruger bkruger at mindspring.com
Wed May 14 20:00:51 EDT 2003


Is there a utility that I can run from bash that I can use to determine 
the number of times a certain character appears in a line?

Example - I want to determine the number of times a comma (,) appears in 
the line:

Field1,Field2,Field3,

Yes, it can be done from Perl, but I would like to do this from bash.

Thanks in advance for any assistance.

Bob

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale





More information about the Ale mailing list