The -p option wraps the script in a template equivalent to the following:
Yes, I knew that. I just never thought that "equivalent" extended to actual placement of braces and presumption of certain syntactic constructs to the extent used by this trick.
Speaking of which, is this (ab)use of -p blessed by p5p and/or Larry?
In reply to Re^3: Using -i in oneliner with postprocessing
by tkil
in thread Using -i in oneliner with postprocessing
by Anomynous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |