How to use cp to copy only certain filetypes?

Using applications, configuring, problems
Message
Author
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#21 Post by Flash »

I can't answer your questions. The only way to find out is to try it. As a test case, use rsync to back up a (small) directory.
I'm pretty sure there is at least one recent thread in the forum about using rsync to back things up. Within the last year for sure.

Peterm321
Posts: 411
Joined: Thu 29 Jan 2009, 14:09
Location: UK

#22 Post by Peterm321 »

fixit Yesterday, at 21:44 wrote:Does it have any benefits over cp ?

Does it work without worrrying about case sensitivity ?
I used to use rsync a fair bit but went back to cp and/or using a dual pane file manager as cp can do more or less anything I needed. The case sensitivity in Linux is in my view an annoyance in mitigation cp can be made case insensitive as it respects regular expressions and its range operator.

Case insensitve *.COM *.com copy :

Code: Select all

cd /
cd root
cd 16_BIT_Stuff
cp  *.[cC][Oo][mM]   /root/Storage

Post Reply