|
From: | Jack J. Woehr |
Subject: | Re: Use m4 to change a file in-place |
Date: | Sun, 10 Apr 2016 11:30:24 -0600 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Peng Yu wrote:
Hi, sed has an option `--in-place` to allow the change to a file in-place. But I don't find a similar option in m4. Does anybody know there is a similar option that I can use for in-place modification of a file? Thanks.
No, but you can use the Linux mktemp command and pipe to the temp file then copy it back. -- Jack J. Woehr # Science is more than a body of knowledge. It's a way of www.well.com/~jax # thinking, a way of skeptically interrogating the universe www.softwoehr.com # with a fine understanding of human fallibility. - Carl Sagan
[Prev in Thread] | Current Thread | [Next in Thread] |