Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #256855

paragraph conversion (was Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?)

From davidson <davidson@freevolt.org>
Newsgroups linux.debian.user
Subject paragraph conversion (was Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible?)
Date 2023-04-08 07:50 +0200
Message-ID <Gi9Cy-yTq-3@gated-at.bofh.it> (permalink)
References (8 earlier) <Gg8AV-gSgi-1@gated-at.bofh.it> <GgngB-h1qT-1@gated-at.bofh.it> <GgSNr-hlpk-5@gated-at.bofh.it> <Gh5Ul-hukd-3@gated-at.bofh.it> <GhdId-hzks-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Wed, 5 Apr 2023 davidson wrote:
> On Wed, 5 Apr 2023 Susmita/Rajib wrote:
>> On 04/04/2023, davidson <davidson@freevolt.org> wrote:
[trim]
>
> Attached (unless the listserv software has nuked it) is a sed script
> "flow" (with verbose comments) which might serve your needs. (Since
> you have not exhibited here any of the text you are working with, I
> can only play the role of speculative optimist.)
>
> For trial purposes make a new, empty directory. Here we'll pretend
> that directory is called "testing". Put "flow" in that directory. Then
> do
>
> $ cd testing # Make testing your current directory
> $ chmod u+x flow # Make flow executable
> $ PATH="$PATH:$PWD" # Now "flow" means something, for this session
> $ icdiff-flow () { icdiff <( flow <"$1" ) <( flow <"$2" ) ; }
>
> and then you should be able to test it out in that same shell session:
>
> $ flow document # see if flow works as intended with a single document
> $ icdiff-flow document1 document2 # see if it works well with icdiff

Attached is a more adequate version of "flow", for converting plain
text paragraphs, in flush or plain style*, to single lines. Unlike the
previous version, version 2.0 does not fumble on the last line of the
document and fail to print material before quitting.

* A "plain" paragraph begins with its first line indented, whereas a
   "flush" paragraph is distinguished from its neighbors by blank
   newlines.

-- 
Sometimes it pays to have squirrels in your head running around making
you question everything. -- Clive Robinson

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-03-31 18:40 +0200
  Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible? rhkramer@gmail.com - 2023-03-31 21:30 +0200
  Re: Which Diff tool could I use for visually comparing two text  files  where Word Wrap is possible? local10 <local10@tutanota.com> - 2023-03-31 23:00 +0200
  Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-01 00:30 +0200
    Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-01 02:20 +0200
      Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-01 03:50 +0200
        Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? Greg Wooledge <greg@wooledge.org> - 2023-04-01 04:10 +0200
  Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-01 06:00 +0200
    Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-01 07:40 +0200
      Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-01 09:00 +0200
        Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? David <curmudgeon@telaman.net.au> - 2023-04-01 09:10 +0200
        Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? <tomas@tuxteam.de> - 2023-04-01 10:20 +0200
        Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-01 11:10 +0200
          Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-01 11:20 +0200
            Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-02 18:00 +0200
              Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-02 18:20 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-03 10:00 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-04 13:10 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson@freevolt.org - 2023-04-04 13:20 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson@freevolt.org - 2023-04-04 13:50 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-04 19:40 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-05 09:40 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-05 18:00 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-05 18:10 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-05 18:30 +0200
                paragraph conversion (was Re: Which Diff tool could I use for visually  comparing two text files where Word Wrap is possible?) davidson <davidson@freevolt.org> - 2023-04-08 07:50 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-06 08:40 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-06 20:30 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson@freevolt.org - 2023-04-06 20:40 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-07 06:40 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-08 15:30 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-08 16:10 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-08 20:10 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? "Andrew M.A. Cater" <amacater@einval.com> - 2023-04-08 20:30 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-09 04:50 +0200
                Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-09 12:10 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? Greg Wooledge <greg@wooledge.org> - 2023-04-09 14:50 +0200
                [Solved] Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-09 20:10 +0200
                Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-09 12:20 +0200
              Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-03 03:30 +0200
          Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-01 13:00 +0200
            Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-01 13:10 +0200
    Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? <tomas@tuxteam.de> - 2023-04-01 08:00 +0200
    Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? davidson <davidson@freevolt.org> - 2023-04-01 09:40 +0200
    Re: Which Diff tool could I use for visually comparing two text files  where Word Wrap is possible? Max Nikulin <manikulin@gmail.com> - 2023-04-01 13:10 +0200
    Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible? rhkramer@gmail.com - 2023-04-01 15:10 +0200
      Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible? rhkramer@gmail.com - 2023-04-01 15:30 +0200
      Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? debian-user@howorth.org.uk - 2023-04-01 16:30 +0200
        Re: Which Diff tool could I use for visually comparing two text files where Word Wrap is possible? rhkramer@gmail.com - 2023-04-01 19:10 +0200
  Re: Which Diff tool could I use for visually comparing two text  files where Word Wrap is possible? Nate Bargmann <n0nb@n0nb.us> - 2023-04-01 14:20 +0200

csiph-web