Comments on How to perform pattern search in files using Grep

This article focuses on some advanced features of the grep command like case insensitive search, displaying certain non-matched lines with line containing matched string, print matched strings in grep, and to display the position of a match in grep.

1 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: Manrod

Hi to all,

Here's Manrod from Spain. I would to know how to use grep when I want to obtain part of a string and this part is an IP. I mean, where grep gets GATEWAY=192.168.1.1, I just want to assign the IP to a variable.

Thanks all in advance. 

Regards.