I try to ignore lines matching following regex by sed command with kdiff3 when comparing files:
sed 's/^\*\*.*//g'
Sed command works in command line (it deletes lines starting with **), but when used in kdiff3 it completely ignores the command - lines with pattern are still present and not ignored.
Troubleshooting measures:
- Tried changing ' to " in sed command - no effect
- Tried simpler substitutions without any regex - no effect
- Tried to use perl instead of sed (
perl -p -e 's/\*.*//g'
) - no effect.
I'm using RedHat Linux, and kdiff version is 0.9.97
Example of input:
***
Timestamp 2017-05-31 03:00:13.159 ***
***
Extremity direction existence as dashwoods do up. Securing marianne led welcomed offended but offering ***
six raptures. Conveying concluded newspaper rapturous oh at. Two indeed suffer saw beyond far former
***
Timestamp 2017-05-31 03:00:13.585 ***
***
Conveying concluded newspaper rapturous oh at. Two indeed suffer saw beyond far former reasonably ***
Tiled say decay spoil now walls meant house. My mr interest thoughts screened of outweigh removing. Evening society musical besides inhabit ye my. Lose hill well up will he over on. Increasing sufficient
Output after using sed in terminal:
six raptures. Conveying concluded newspaper rapturous oh at. Two indeed suffer saw beyond far former
Tiled say decay spoil now walls meant house. My mr interest thoughts screened of outweigh removing. Evening society musical besides inhabit ye my. Lose hill well up will he over on. Increasing sufficient