[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: copy many files filtering extensions



On Wednesday 08 January 2003 16:10, 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)?

>From what I know, cp doesn't support this. However, you could do something 
like find . ! -name *.bak -exec cp \{\} /where/you/like/it \;

This should do what you want.

greetings,
  Johannes

-- 
"More than machinery we need humanity" -- Charlie Chaplin, The Great 
Dictator



Reply to: