On Thu, Jul 16, 2009 at 5:50 AM, eric pareja<[email protected]> wrote: > have you checked the GNU sed man page recently? it does > in-place-editing with the -i or --in-place switch. > > sed -i s/^/./g porndomain.acl > > would have worked as well, without the side-effect .bak file being produced.
GNU sed definitely does in-place stream editing. Old Unix-style sed (including Plan 9's version) doesn't, though. Still, I'm glad to see different ways of solving the same problem. As always, even outside of Perl, There's More Than One Way To Do It ;) -- Zak B. Elep || zakame.net 1486 7957 454D E529 E4F1 F75E 5787 B1FD FA53 851D _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

