Ralph Corderoy <[email protected]> added the comment:
Google has led me here because I'm trying to see how to process find(1)'s
-print0 output with Python. Perl's -0 option and $/ variable makes this
trivial.
find -name '*.orig' -print0 | perl -n0e unlink
awk(1) has its RS, record separator, variable too. There's a clear need, and
it should also be possible to modify or re-open sys.stdin to change the
existing separator.
----------
nosy: +ralph.corderoy
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue1152248>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com