Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Aug 2000 19:11:09 -0400 (EDT)
From:      "Philip M. Gollucci" <gollucci@wam.umd.edu>
To:        Evren Yurtesen <yurtesen@ispro.net.tr>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: how to delete all files but the XYZ file.
Message-ID:  <Pine.GSO.4.21.0008261910550.2298-100000@rac1.wam.umd.edu>
In-Reply-To: <Pine.BSF.4.21.0008261122230.16809-100000@finland.ispro.net.tr>

next in thread | previous in thread | raw e-mail | index | archive | help
the rm command supports regex expressions.

*****************************************************************************
Philip M. Gollucci (p6m7g8)
Web-site    : http://www.p6m7g8.com
E-mail      : gollucci@wam.umd.edu 
	      Philip@p6m7g8.com 
Phone       : 301.249.6261 (Home)
	      301.   .	   (College)
Major       : Computer Science 
	      Electrical Engineering 
Minor	    : Classical & Jazz Performance
Current Job : Co Science, Discovery, & the Universe Webmaster
	      URL: http://www.sdu.umd.edu 
Resume	    : http://www.wam.umd.edu/~gollucci/resume.html
*****************************************************************************


On Sat, 26 Aug 2000, Evren Yurtesen wrote:

> Lets say I have 1230 files in one directory and I want to delete
> all of the files but not the files named XYZ, XYA, XYB etc.
> I want to do this from shell without using any file managers. (since
> actually I need to do this from a script)
> 
> Evren
> 
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.21.0008261910550.2298-100000>