How can I make copies of only the files whose names are similar to ones patterns ( patterns ) ? I tried using rsync
, but either nothing is copied or everything is copied. These questions in SO in English did not help me:
Here are some of my attempts to do it:
-
Everything on the command line (command line):
rsync -rv --include='solexa/' --include='solexa/*/*.csv' --exclude='*' solexa RunMetrics
-
With a pattern file:
rsync -av --include-from patrones.txt solexa RunMetrics
Here is my pattern file ( patterns ) when nothing is copied. I want to copy only the files with names that start with a number:
+ ^\d.*/*.csv - *
Here is my file of " patterns " when you copy everything:
+ */*.csv
I do not care if it's done with rsync
or with another tool, I just thought that rsync
had the capabilities to do it.