Re: "sed" question

Liste des GroupesRevenir à cl awk 
Sujet : Re: "sed" question
De : gtaylor (at) *nospam* tnetconsulting.net (Grant Taylor)
Groupes : comp.unix.shell
Date : 08. Mar 2024, 00:56:04
Autres entêtes
Organisation : TNet Consulting
Message-ID : <usdk6k$so1$1@tncsrv09.home.tnetconsulting.net>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 3/6/24 19:54, Janis Papanagnou wrote:
You see that there's then (per default) only single delimiting spaces left.
I think I see what you're saying.  I also feel like I must be missing something obvious, because what you're describing is what I would expect awk to do.

You can change that by delimiter OFS, e.g. OFS="\t" would place TABs in between (but would not preserve the original spacing).
I've dabbled with OFS, and IFS, a few times as needed.  But most of the time I don't need to.

If you'd want to retain the previous spaces it would require some other (not so trivial) handling.
I can't think of a use case where I would want that and choose to use awk.  --  I'm sure such use cases exist, I'm just ignorant of them.
--
Grant. . . .

Date Sujet#  Auteur
23 Dec 24 o 

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal