[NTLUG:Discuss] Listing file permissions in "chmod format"

Patrick R. Michaud pmichaud at pobox.com
Fri Apr 16 08:08:25 CDT 2010


On Fri, Apr 16, 2010 at 08:06:16AM -0500, Patrick R. Michaud wrote:
>     cat {file} | sed {script} > {newfile}
>     chmod {newfile} --reference={file}
>     mv {file} {file}.{date}
>     mv {newfile} {file}

Oops, that second line should probably be

    chmod --reference={file} {newfile}

Pm



More information about the Discuss mailing list