From: Larry M. <lm...@bi...> - 2013-07-23 17:51:49
|
Perl syntax: /tmp/foo open /tmp/foo read only >/tmp/foo create/truncate /tmp/foo and open it write only >>/tmp/foo append to /tmp/foo, creating if necessary |sort > /tmp/foo popen() sort and send sort's output to /tmp/foo cat /etc/motd| popen() cat /etc/motd and send back output Etc. Why reinvent the wheel? -- --- Larry McVoy lm at bitmover.com http://www.bitkeeper.com |