Skip to content

Glossary: Command Line for IT: Bash and PowerShell

grep -o

Prints only the part of each line that matched, not the whole line. With an IPv4 pattern, it pulls every address out of auth.log.

Where the book teaches it

Related terms

grep -EIPv4 address