...
What about the case where the files you want are scattered in sub-directories? Consider a typical GSAF project directory structure, where Fastq files are nested in subdirectories:
Here's a solution using find and xargs:
...
Code Block | ||
---|---|---|
| ||
rm -rf ~/test; mkdir ~/test; cd ~/test find /stor/work/CCBB_Workshops_1/bash_scripting/fastq -name "*.txtgz" | xargs ln -s -fsf -t . |
Removing file suffixes
...