Hương Trà Trần Posted on Apr 24 Hi guys, do you guys know what problem is in this command? #linux #bash #cybersecurity #backend Top comments (1) Subscribe Personal Trusted User Create template Templates let you quickly answer FAQs or store snippets for re-use. Submit Preview Dismiss Collapse Expand Hương Trà Trần Hương Trà Trần Hương Trà Trần Follow Location Antwerp, Belgium Education KdG Pronouns Ms Joined Apr 24, 2025 • Apr 24 Dropdown menu Copy link Hide 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" * Code of Conduct • Report abuse Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse
Top comments (1)
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"
*