12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788openBistroopenBistro.Shell_dslopenPrintfletidentx=xmoduleCmd=structletwget?no_check_certificate?user_agent?user?password?desturl=cmd"wget"[option(flagstring"--no-check-certificate")no_check_certificate;option(opt"--user-agent"string)user_agent;option(opt"--user"string)user;option(opt"--password"string)password;option(opt"-O"ident)dest;string_depurl;](* process substitution for gunzip *)letpsgunzipx=seq~sep:""[string"<(gunzip -c ";depx;string";)"]endletwget_dyn?descr_url?no_check_certificate?user_agent?user?passwordurl=letinfo=matchdescr_urlwithNone->""|Somei->sprintf"(%s)"iinWorkflow.shell~descr:("unix.wget"^info)[Cmd.wget?no_check_certificate?user_agent?user?password~desturl]letwget?descr_url?no_check_certificate?user_agent?user?passwordurl=wget_dyn?descr_url?no_check_certificate?user_agent?user?password(Workflow.stringurl)letunzipzip=Workflow.shell~descr:"unix.unzip"[cmd"unzip"[opt"-d"identdest;depzip]]letgunzipgz=Workflow.shell~descr:"unix.gunzip"[cmd"gunzip"[opt"-c"depgz]~stdout:dest]letbunzip2bz2=Workflow.shell~descr:"unix.bunzip2"[cmd"bunzip2"[opt"-c"depbz2]~stdout:dest]lettar_xf?strip_componentstar=Workflow.shell~descr:"unix.tar_xf"[mkdir_pdest;cmd"tar"[string"xf";deptar;opt"-C"identdest;option(opt"--strip-components"int)strip_components;];]lettar_xfz?strip_componentstgz=Workflow.shell~descr:"unix.tar_xfz"[mkdir_pdest;cmd"tar"[string"xfz";deptgz;opt"-C"identdest;option(opt"--strip-components"int)strip_components;];]lettar_xfj?strip_componentstgj=Workflow.shell~descr:"unix.tar_xfj"[mkdir_pdest;cmd"tar"[string"xfj";deptgj;opt"-C"identdest;option(opt"--strip-components"int)strip_components;];]letcrlf2lff=Workflow.shell~descr:"unix.crlf2lf"[cmd"tr"[opt"-d"string"'\r'"]~stdin:(depf)~stdout:dest]lethead~nf=Workflow.shell~descr:"unix.head"[cmd"head"[opt"-n"intn]~stdin:(depf)~stdout:dest]