delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/02/10:31:41

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 2 Jul 2004 10:31:11 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: =?ISO-8859-1?Q?PLAN_Fr=E9d=E9ric_URS_Lyon?= <frederic DOT plan AT francetelecom DOT com>
cc: Michael Pfeiffer <michael DOT pfeiffer AT scch DOT at>, cygwin AT cygwin DOT com
Subject: RE: How to delete file "nul"?
In-Reply-To: <003901c46026$41742150$558a920a@lyon.francetelecom.fr>
Message-ID: <Pine.GSO.4.58.0407021023350.4399@slinky.cs.nyu.edu>
References: <003901c46026$41742150$558a920a AT lyon DOT francetelecom DOT fr>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

Fred,

First off, <http://cygwin.com/acronyms/#PCYMTNQREAIYR>.

Secondly, if "rm" didn't work for the OP from the bash prompt, what makes
you think it'll work from "find"?  Oh, and you used the wrong "/" before
the semicolon (which would thankfully make the below command invalid,
because if it were valid, it would have deleted the root directory of
Cygwin).  As I've found out time and time again, it pays to actually try
the commands yourself before sending them to the public list, and then
cut-and-paste them to avoid the possibility of error.

HTH,
	Igor

On Fri, 2 Jul 2004, PLAN Frédéric URS Lyon wrote:

> Hello,
>
> try this way :
>
> cd my_folder
> find ./ -name "nul" -exec rm {} /;
>
> Fred
>
>
> -----Message d'origine-----
> De : cygwin-owner AT XXXXXX DOT XXX [mailto:cygwin-owner AT XXXXXX DOT XXX]De la part de Michael Pfeiffer
> Envoye : vendredi 2 juillet 2004 11:29
> A : cygwin AT XXXXXX DOT XXX
> Objet : How to delete file "nul"?
>
> Hi
>
> bash allows to pipe to a file named "nul" e.g.:
> echo test > nul
>
> bash-2.05b$ ls -l
> total 1
> -rwxrwxrwx    1 pfeiffer mkgroup-        4 Jul  2 10:00 nul
>
> The problem is that this file can not be deleted.
> I was not able to delete it using the "rm" command in
> bash, or "del" in a windows command line or the
> windows explorer.
>
> Any idea how this file can be deleted, without
> booting an alternative OS?
>
> Regards,
> Michael

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019