Skip to content

Comment on fish shellparent

Comments

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.

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#...
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.