On Tue, 4 Apr 2023 davidson wrote: [trim]
icdiff will not do that. icdiff is faithful to its sources. I have determined this by trying it out a little myself, and by examining the command line options documented in its manual page ("man icdiff"). You could give it different sources: $ icdiff <( tr '\n' ' ' <file1 ) <( tr '\n' ' ' <file2 ) You can define a function to do the same thing, to save some typing at future invocations,
Typos ahead:
$ icdiff-flowed () { <( tr '\n' ' ' <file1 ) <( tr '\n' ' ' <file2 ) ; }
Correction: $ icdiff-flowed () { <( tr '\n' ' ' <"$1" ) <( tr '\n' ' ' <"$2" ) ; }
and then use it like so $ icdiff-flowed file1 file2 | less -R
-- Sometimes it pays to have squirrels in your head running around making you question everything. -- Clive Robinson