[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using the same file as stdin and stdout
The following, of course, doesn't work:
sed -e s/foo/bar/g < x > x
But is there any way to have the same file as input and output using
any form of shell redirection, but WITHOUT using a temporary file?
That is just with shell constructs without using, e.g. the inplace
option to 'perl'.
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/