tobold.org

correct • elegant • free

△ comp.unix.shell △

◅ setting file descriptors in Perl

Redirecting output ▻

Keeping permisions of an overwritten file

In article <36A72230.B569E1BE@aom.ericsson.se>,
Christin Molsa EDT/L/G 16311 72024  <qdtcmol@aom.ericsson.se> wrote:
>I need to copy a new file to an old filename and i want to keep the
>permisions that the old file had, sort of the reverse of cp -p file1
>file2

Isn't this what a plain `cp new old' does?

Tim.
--
Tim Goodwin       | "The FSF likes to write programs that require twice as much
Univ of Leicester | memory as your machine has today :-) ." -- Steve Summit

Original headers:

From: tjg@ltpcg.star.le.ac.uk (Tim J Goodwin)
Newsgroups: comp.unix.shell
Subject: Re: Keeping permisions of an overwritten file
Date: 22 Jan 1999 12:49:00 -0000
Message-ID: <789s3s$pji$1@ltpcg.star.le.ac.uk>
References: <36A72230.B569E1BE@aom.ericsson.se>

△ comp.unix.shell △

◅ setting file descriptors in Perl

Redirecting output ▻