[plug] grep task?

James Devenish devenish at guild.uwa.edu.au
Sat Nov 22 16:31:09 WST 2003


In message <20031122082540.GC965 at erdos.home>
on Sat, Nov 22, 2003 at 04:25:40PM +0800, Cameron Patrick wrote:
> On Sat, Nov 22, 2003 at 04:16:10PM +0800, James Devenish wrote:
> | E.g.:
> | 
> | TMP==( echo '%g/anarchist at blah/s//entombednerds at blah/g'; echo f; echo w; echo q )
> 
> How (and in what shell!) does that work?

Sorry -- I was naughty. I'm pretty sure I've done this before, too (i.e.
post code without specifying what shell I'm posting for -- a crime I
would usually point out on-list). It was for zsh (process substitution).
Obviously it's just lazy syntax. I assume something similar:

TMP=$(mktemp) || exit 1
( echo '%g/anarchist at blah/s//entombednerds at blah/g'; echo f; echo w; echo q ) >> $TMP


_______________________________________________
plug mailing list
plug at plug.linux.org.au
http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug


More information about the plug mailing list