Hack Forums
[Shell] Regex Grep - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] Regex Grep (/showthread.php?tid=5713463)



Regex Grep - Cuthbert - Sep 8, 2017

I am closing this thread. Thanks for the assistance nonetheless.


* - Hackoo - Sep 8, 2017

Hi ✌
And if you try like that what did you get as result ?
Code
grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}"



* - Cuthbert - Sep 8, 2017

(Sep 8, 2017 11:15 AM)Hackoo Wrote:  Hi ✌
And if you try like that what did you get as result ?
Code
grep -oE "([0-9]{1,3}\.){3}[0-9]{1,3}"

That would capture the src= IPs as well which I do not want. I only want the dst= IP.