> ----- Original Message -----
> From: lina
> Sent: 12/25/11 12:04 PM
> To: debian-user@lists.debian.org
> Subject: which is the best way to find some files
> 
> Hi,
> 
> I have some files like
> 
> a_1.txt a_2.txt
> a_1.doc a_2.doc
> a_1.xxx a_2.xxx
> 
> I only want to keep a_*.xxx
> 
> but delete all other a_*.doc or .txt and more
> 
> rm a_*.[^{xxx}] not work,
> 
> Thanks for suggestions,
> 
> Best regards,
> 
> 

maybe try

rm !(*.xxx)

./tony
--
http://www.tonybaldwin.net
All Tony, all the time!


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111225171350.12...@gmx.com

Reply via email to