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 MatDepends 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 johan@ehnberg.net "Windows? No... I don't think so."