[PLUG] egrep syntax correction
Rich Shepard
rshepard at appl-ecosys.com
Sat Jul 4 23:09:53 UTC 2015
I have an 851 line data file in which certain lines begin with P followed
by 5 digits. I want to count the number of those lines. Despite reading the
grep man page I am missing the correct syntax.
The expression
egrep -cE "^P[[:digit:]]\{5\}" hrwq.dat
returns a count of zero (0). So do variations of options and search strings.
What have I missed here?
Happy 4th, all,
Rich
More information about the PLUG
mailing list