3 ms·
It doesn't have process redirection either, and that's one I use a fair bit. For example paste <(hquery -q '//a/@href' x) <(hquery -q '//a' x) Where hquer
by barrkel 13y ago
It doesn't have process redirection either, and that's one I use a fair bit. For example
paste <(hquery -q '//a/@href' x) <(hquery -q '//a' x)
Where hquery is one of my utilities for running xpath queries over loosely parsed HTML. This would produce a tab-delimited list of link urls to link text.
- mitmatt 13y agoTry piping into psub, as in paste (hquery -q '//a/@href' x | psub) (hquery -q '//a' x | psub) http://ridiculousfish.com/shell/user_doc/html/commands.html#psub http://ridiculousfish.com/shell/user_doc/html/commands.html#...