-
Is there a way to load a q-script from the internet without saving it at disk?
Currently if I want to import a q-script, e.g. sp.q, from the internet, I need to save it to disk and then load it.
system "wget https://raw.githubusercontent.com/KxSystems/kdb/master/sp.q";
\l sp.q
But if I want to do the l to the url directly without saving sp.q to disk, it doesn’t work:
\l https://raw.githubusercontent.com/KxSystems/kdb/master/sp.q
If I want to import the q-script without saving it, the only way I can do is to parse sp.q paragraph by paragraph manually:
myText:system "curl https://raw.githubusercontent.com/KxSystems/kdb/master/sp.q";
value “” sv myText[til 5]; // import the 1st paragraph
value “” sv myText[5 _ til 10]; // import the 2nd paragraphIs there a better way to do this?
Log in to reply.