Re: missing way to extract data out of data

2021-03-25 Thread felix
I think, memory footprint doesn't really matter when standard availlable ram is lot away... But *time required to ``fork''* could matter: QuickTest() { local TIMEFORMAT='%R ( %U + %S )'; printf "%-10s: " "${1##*/}"; time for i in {1..1000}; do res=$("$@"); done;

Re: missing way to extract data out of data

2021-03-24 Thread Eli Schwartz
On 3/23/21 4:46 AM, Andreas Schwab wrote: > On Mär 22 2021, Dale R. Worley wrote: > >> Greg Wooledge writes: >>> Partly true. seq(1) is a Linux thing, and was never part of any >>> tradition, until Linux people started doing it. >> >> Huh. I started with Ultrix, and then SunOS, but don't rememb

Re: missing way to extract data out of data

2021-03-24 Thread Dale R. Worley
Andreas Schwab writes: >> I've never tracked down why, but the Perl executable is a lot smaller >> than the Bash executable. > > Is it? > > $ size /usr/bin/perl /bin/bash >textdata bss dec hex filename > 2068661 27364 648 2096673 1ffe21 /usr/bin/perl > 1056850 22188

Re: missing way to extract data out of data

2021-03-23 Thread Andreas Schwab
On Mär 22 2021, Dale R. Worley wrote: > Greg Wooledge writes: >> Partly true. seq(1) is a Linux thing, and was never part of any >> tradition, until Linux people started doing it. > > Huh. I started with Ultrix, and then SunOS, but don't remember learning > seq at a later date. According to

Re: missing way to extract data out of data

2021-03-22 Thread Dale R. Worley
Greg Wooledge writes: > Partly true. seq(1) is a Linux thing, and was never part of any > tradition, until Linux people started doing it. Huh. I started with Ultrix, and then SunOS, but don't remember learning seq at a later date. > (Before POSIX, it involved using expr(1) for every increment,

Re: missing way to extract data out of data

2021-03-19 Thread Greg Wooledge
On Fri, Mar 19, 2021 at 09:10:06PM -0400, Dale R. Worley wrote: > Alex fxmbsw7 Ratchev writes: > > yea well it does wonders, however was looking for a way without spawning > > externals like gawk.. maybe in future there will be =) > > Traditionally, shell scripts depended on external binaries to

Re: missing way to extract data out of data

2021-03-19 Thread Dale R. Worley
Alex fxmbsw7 Ratchev writes: > yea well it does wonders, however was looking for a way without spawning > externals like gawk.. maybe in future there will be =) Traditionally, shell scripts depended on external binaries to do a lot of the processing. At the least, what newer shells do with "{NNN

Re: missing way to extract data out of data

2021-03-19 Thread Alex fxmbsw7 Ratchev
ehe :)) you tell me rather a good pike beginnings resource On Fri, Mar 19, 2021 at 9:42 AM Andreas Schwab wrote: > On Mär 19 2021, Alex fxmbsw7 Ratchev wrote: > > > yea well it does wonders, however was looking for a way without spawning > > externals like gawk.. maybe in future there will be =

Re: missing way to extract data out of data

2021-03-19 Thread Andreas Schwab
On Mär 19 2021, Alex fxmbsw7 Ratchev wrote: > yea well it does wonders, however was looking for a way without spawning > externals like gawk.. maybe in future there will be =) You know where to get perl or python. Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB4

Re: missing way to extract data out of data

2021-03-18 Thread Alex fxmbsw7 Ratchev
yea well it does wonders, however was looking for a way without spawning externals like gawk.. maybe in future there will be =) On Fri, Mar 19, 2021 at 2:02 AM Dale R. Worley wrote: > Alex fxmbsw7 Ratchev writes: > > there is way to crop data to wanted, by cropping the exclulsions away > > but

Re: missing way to extract data out of data

2021-03-18 Thread Dale R. Worley
Alex fxmbsw7 Ratchev writes: > there is way to crop data to wanted, by cropping the exclulsions away > but what about a way to extract data, eg @( .. ) match > not about using [[ =~ but only var internal stuff > .. or do i miss there something If you want to do a pattern-match against a string, t

Re: missing way to extract data out of data

2021-03-18 Thread Greg Wooledge
On Thu, Mar 18, 2021 at 02:01:12PM +0100, Alex fxmbsw7 Ratchev wrote: > there is way to crop data to wanted, by cropping the exclulsions away > but what about a way to extract data, eg @( .. ) match > not about using [[ =~ but only var internal stuff > .. or do i miss there something This is reall