Hi Jérémie,

> Without the quotes the shell performs splitting, maybe ksh(1) is a bit
> slow at this...  I'd rather download the page to a temp file rather than
> put that stuff into memory.
> 

Ok, thank you. This is actually faster when I use a tempfile.
(sed is even faster than gsed in that case)

> 
> Just by replacing sed by gsed, on the same system?
> 

Yes, just a simple "pkg_add gsed-4.2.2.tgz" and
$ time echo $webpage | gsed -n -r
's/(.*)\"token\":\"([a-zA-Z0-9]+)\"(.*)/\2/p'

Denis

Reply via email to