Suppose you want to grep over a filtered list of files. Is there an idiomatic
approach to solve this problem with rc?
I can only think of one erroneous method:
grep pattern `{find . -type f -name '*_test.go'}
I know that it's possible to use find(1)'s -exec option. But find does not
exist in Plan 9.
It seems like it is impossible to solve this problem with simple IO pipes. One
must encode newlines somehow, be it C-style \n, shell-style 'string', JSON or
whatnot.
It also seems that newlines are the only symbol that breaks the idiom `grep
pattern `{cmd}`.
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/T11149f1f949593f5-M80e746fe9ffc98e7d9511774
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription