Hi,

On Sat, Jul 2, 2022 at 4:53 PM Eric Auer <[email protected]> wrote:
>
> PS: Regarding Jim's search and replace suggestion, I like
> to add the twist to use "touch" to "copy" the timestamp to
> a /tmp/tstamp file, then use sed -i for in-place-edits and
> then copy back the change time from the temp tstamp file.

I also was going to suggest "sed -i" but, in particular, "sed -i~"
(for backup). Also, I believe "touch -r" is what you want for using
date from reference file.

* https://linux.die.net/man/1/sed
* https://linux.die.net/man/1/touch


_______________________________________________
Freedos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to