in reply to diff not working as it should

This is the only line different, and is the only marked with an asterisk. Don't count the line beginning with "||Thu..." this seems only a part of the title showing the timestamp of both files

* 1|MONA|Female|20610|Mother-In-Law |MONA|Female|20610|Lord Godess of the Universe * |

All the other lines are shown, but unmarked. You can change the format of your output in you don't like this.

Replies are listed 'Best First'.
Re^2: diff not working as it should
by tale051258 (Initiate) on Dec 23, 2011 at 17:26 UTC

    Yes, you've got my point there at the end of your response.
    I just want the one line with the asterisk to show (and the header at the top with the file names and dates). I want the other two lines (after the asterisk line) that are identical not to appear in the output. You mentioned I could do that by '... changing the format...'. How does one do that?
    Cheers!
      Play with the STYLE option, or simply apply a grep or a regexp m!(^\|\||^\*)! to the output line by line
        Not seeing much on the STYLE option.
        I can use the regex m/(^\*)/ and that gives me what I need for the most part.
        But where in the code can I use this regex? That is, can it be used as part of the diff command, as in { sub (m/(^\*)/) } ? (yes, I know this is not syntactically correct but you get the idea.)
        Cheers!