Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Fri, 3 May 2002 20:16:23 +0200 From: "Gerrit P. Haase" Reply-To: "Gerrit P. Haase" Organization: don't eat dead animals X-Priority: 3 (Normal) Message-ID: <120108386090.20020503201623@nyckelpiga.de> To: cygwin AT cygwin DOT com Subject: Re: perl -i is very dangerous ! In-Reply-To: <3CD2B64F.5090005@wanadoo.fr> References: <3CD2B64F DOT 5090005 AT wanadoo DOT fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Marc schrieb: > mc AT MILLENIUM:~/test/perldestroy# cat test.txt > this is > a test > for cygwin > mc AT MILLENIUM:~/test/perldestroy# perl -i -ne 's/this/works/' test.txt > Can't do inplace edit on test.txt: Permission denied. > mc AT MILLENIUM:~/test/perldestroy# ls > any idea ? It is gone. Use perl -i.bak instead. Gerrit -- =^..^= -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/