Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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:

Image Added

Here's a solution using find and xargs:

...

Code Block
languagebash
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

...