I vote for this new feature. On Fri, Jan 22, 2021 at 9:16 AM Chet Ramey <chet.ra...@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 c...@case.edu http://tiswww.cwru.edu/~chet/ > >