Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Deleting files with two identical parts in filename
- X-seq: zsh-users 13003
- From: Jens Kubieziel <maillist@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Deleting files with two identical parts in filename
- Date: Tue, 8 Jul 2008 14:21:15 +0200
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organisation: Qbi's Welt
Hi,
in a directory there are some files:
# ls
abc.bar+bar abc.bar+foo abc.foo+bar abc.foo+baz abc.foo+foo
I want to delete all files which have the same string before and after
the '+' (abc.bar+bar and abc.foo+foo). Is there a way with zsh to do
just 'rm $SOME_MAGIC_COMMAND', which does the job?
Besten Gruß
--
Jens Kubieziel http://www.kubieziel.de
FdI#36: Selbsterklärend
Handbuch gegen Aufpreis (Peter Berlich)
Attachment:
signature.asc
Description: Digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author