Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Deleting files with two identical parts in filename



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