Hello all,
Is there any way using diff to show differences only in lines that include an specific word?.
Thank you.
Hello all,
Is there any way using diff to show differences only in lines that include an specific word?.
Thank you.
You can specify the option '-I regexp' to ignore the lines which match the specified regular expression. If you inverse the regex, you can ignore all lines NOT containing the word you're looking for.
See the diff manpage for more info or here for a specific example.