Hacker News new | ask | show | jobs
by barrkel 4696 days 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.
1 comments

Try 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#...