Grep is powerful search. Here is how to grep for an IP address within a directory (.
) with regular expressions (E
), recursive directory search (r
) and only matching (o
)
grep -oEr "([0-9]{1,3}\.){3}[0-9]{1,3}" .
Happy searching.
Grep is powerful search. Here is how to grep for an IP address within a directory (.
) with regular expressions (E
), recursive directory search (r
) and only matching (o
)
grep -oEr "([0-9]{1,3}\.){3}[0-9]{1,3}" .
Happy searching.