Text processing tools and/or languages

J.Witvliet at mindef.nl J.Witvliet at mindef.nl
Fri Jan 21 09:52:10 UTC 2022




From: "Chris Green" <cl at isbd.net<mailto:cl at isbd.net>>
Date: Friday, 21 January 2022 at 10:41:28
To: "ubuntu-users at lists.ubuntu.com" <ubuntu-users at lists.ubuntu.com<mailto:ubuntu-users at lists.ubuntu.com>>
Subject: Re: Text processing tools and/or languages

On Thu, Jan 20, 2022 at 11:26:38PM -0500, Little Girl wrote:
> Hey there,
>
> Chris Green wrote:
>
> >Yes, but it's *not* how sed and awk work. :-)
> >
> >Both sed and awk feed the whole of the text past each line


> I'm not well-versed in sed, but just playing around because I love
> text manipulation. Someone more experienced could probably do all that
> with one sed command and no pipe.
>
I've just about got to where I want using awk, it's not the ideal tool
but it's usually a bit easier to understand/maintain than sed scripts.

If it got much more complex I think I'd move to Python but that does
add quite a bit of coding overhead because it simply isn't so handy
for pattern matching and such.

Did you know that for complex constructions, you can use Libre Office in script-mode?



--
Chris Green

--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het elektronisch verzenden van berichten.

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20220121/c24396c6/attachment.html>


More information about the ubuntu-users mailing list