bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to overwrite a symbolic link?


From: Peng Yu
Subject: How to overwrite a symbolic link?
Date: Thu, 6 May 2010 09:53:04 -0500

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.

-- 
Regards,
Peng




reply via email to

[Prev in Thread] Current Thread [Next in Thread]