bansalhimanshu
Programmer
I need to find the count of a character or a set of characters in a file. Is there a unix command for that?
Like for given file I need to find out number of occurences of "af":
afbcd efg abef akljklj jklj ljlj
ljlkj jflja fjklja j ljkfaj jkj
jljaf jflaj jafj;ajj;jj jlkj;
Like for given file I need to find out number of occurences of "af":
afbcd efg abef akljklj jklj ljlj
ljlkj jflja fjklja j ljkfaj jkj
jljaf jflaj jafj;ajj;jj jlkj;