[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to overwrite a symbolic link?
From: |
Pierre Gaston |
Subject: |
Re: How to overwrite a symbolic link? |
Date: |
Thu, 6 May 2010 18:53:56 +0300 |
On Thu, May 6, 2010 at 5:53 PM, Peng Yu <pengyu.ut@gmail.com> wrote:
> Suppose that I have a symbolic link link1 pointing to file1. When I
> write to link1, I don't want file1 change. I want it to remove the
> link generated a new file and write to it.
>
> pipe '>' will change file 1. I'm wondering if there is way to do so,
> so that I don't have to test whether it is a symbolic link or not
> explicitly.
>
rm link1
Re: How to overwrite a symbolic link?, Marc Herbert, 2010/05/07