Hi,
I think it's a typo in the cheat sheet; at least for s///,
\i is the correct syntax to reference "tagged patterns":
% echo foo bar | ssam 's/([a-z]+) ([a-z]+)/\2 \1/'
bar foo
I lack familiarity with sam/sam's language to be certain,
but I doubt it'd make much sense to have it for other
c
> # substitute #'th tagged pattern
Are there any examples? I can't find any in Pike's papers.
--
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Tc2ebea6bfef26073-M8aa6c884325788677721755e
Delivery options: https://9fans.topicbox.com/groups/