The command grep is a really simple tool to us to search for text in a file. But the real power comes when we start to add in regular expression meta-characters. Here we look at ^ meaning the text is at the start of a line and the ? denoting the preceding character is optional. In this was using grep -E we can search for commented setting or active settings within a file making the comment optional. Checking it is at the start of the line means that we are able to target text that is most likely active as a default or configured setting.
The 25 page PDF detailing GREP is available at [ Ссылка ]
Additionally you can find my video courses on Pluralsight: [ Ссылка ] and take time to see my own site [ Ссылка ]
Ещё видео!