[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Feature Request: scanf-like parsing
From: |
Saint Michael |
Subject: |
Re: Feature Request: scanf-like parsing |
Date: |
Fri, 22 Jan 2021 09:54:39 -0500 |
I vote for this new feature.
On Fri, Jan 22, 2021 at 9:16 AM Chet Ramey <chet.ramey@case.edu> wrote:
> On 1/22/21 12:29 AM, William Park wrote:
>
> > But, if data are buried in a mess, then it's very labour-intensive to
> > dig them out. It might be useful to have scanf()-like feature, where
> > stdin or string are read and parsed according to the usual format
> > string. I guess, it would actually be sscanf(), since 'read' builtin
> > reads a line first. Since you're dealing with strings, only %s, %c, and
> > %[] are sufficient.
>
> Sounds like a good candidate for a loadable builtin. Anyone want to take
> a shot at it?
>
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
> ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
>
>
- Feature Request: scanf-like parsing, William Park, 2021/01/22
- Re: Feature Request: scanf-like parsing, L A Walsh, 2021/01/22
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/22
- Re: Feature Request: scanf-like parsing,
Saint Michael <=
- Re: Feature Request: scanf-like parsing, Daniel Colascione, 2021/01/22
- Re: Feature Request: scanf-like parsing, pepa65, 2021/01/22
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/22
- Re: Feature Request: scanf-like parsing, Greg Wooledge, 2021/01/22
- Re: Feature Request: scanf-like parsing, pepa65, 2021/01/22
- Re: Feature Request: scanf-like parsing, Léa Gris, 2021/01/22
- Re: Feature Request: scanf-like parsing, Oğuz, 2021/01/22
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/25
- Re: Feature Request: scanf-like parsing, Chet Ramey, 2021/01/25
- Re: Feature Request: scanf-like parsing, Alex fxmbsw7 Ratchev, 2021/01/25