DEV Community

Cover image for Hi guys, do you guys know what problem is in this command?
Hương Trà Trần
Hương Trà Trần

Posted on

Hi guys, do you guys know what problem is in this command?

Top comments (1)

Collapse
 
hng_trtrn_67bc14029b profile image
Hương Trà Trần

grep -oP "\b([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})\b" /var/log/syslog | wc -l : this work

but this does not work:
*grep -i "Fail" /var/log/syslog | grep -oP "\b([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})\b"
*