Search Results

Search: Posts Made By: blackvelvet
1,555
Posted By sumitsks
-c option will give counts for line which have...
-c option will give counts for line which have match string, it is not counting the no of occurrence in each line.
1,555
Posted By vbe
the -c is for the count... I suggest you test...
the -c is for the count...
I suggest you test without and see for yourself!
To give you an idea:

$ grep -E h 0003.data
aah
haahed haahed
aahing
aahs
harward
$ grep -Ec h 0003.data
5
...
1,555
Posted By vbe
grep -Ec a file
grep -Ec a file
1,555
Posted By RudiC
Like so:grep -Ec "h.*a|a.*h" file 4
Like so:grep -Ec "h.*a|a.*h" file
4
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 03:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy