Hi All,
Can anyone make this regexp more efficient?
I am trying to grep for 2008:09:45 through 2008:10:45 am in a file:
egrep -e "2008:09:4[5-9]" -e "2008:09:5[0-9]" -e "2008:10:[0-3][0-9]" -e "2008:10:4[0-5]" FILE
other than just:
egrep -e "2008:09:4[5-9]|2008:09:5[0-9]|2008:10:[0-3][0-9]|2008:10:4[0-5]" FILE
Thanks!
-jouell
Can anyone make this regexp more efficient?
I am trying to grep for 2008:09:45 through 2008:10:45 am in a file:
egrep -e "2008:09:4[5-9]" -e "2008:09:5[0-9]" -e "2008:10:[0-3][0-9]" -e "2008:10:4[0-5]" FILE
other than just:
egrep -e "2008:09:4[5-9]|2008:09:5[0-9]|2008:10:[0-3][0-9]|2008:10:4[0-5]" FILE
Thanks!
-jouell