Friday, July 7, 2017
Copy files using regular expressions
If you need to copy or move only a portion of your files based on some rule for their name, use regular expressions.
If you need to find files with specific number, lets say those with _1_ or _2_ in the name of the file, use the following regex:
Now simply to copy those files capture the output of the command:
For example, these are all fastqc.zip files in a folder: