Rob Weir wrote:
On Wed, Jan 08, 2003 at 04:10:10PM +0100, Mat wrote:

I have to periodically copy a lot of files filtering them by their extensions (something like cp * but *.bak). How can I do that (as I can read from cp' man or info page this is not possible)?
Thanks
Mat

Depends on your shell (which globs * before passing it to cp).  zsh (of
course:) can do this simply:

$ cp *~*.bak /blah/

-rob
Or, if installing a small program called 'rsync' is not a problem, use it with '--exclude=*.bak'. It's a really cool program btw. Can be used for local copying as well.

Hth,
/johan

--
Johan Ehnberg
[EMAIL PROTECTED]
"Windows? No... I don't think so."


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to