Quantcast
Viewing all articles
Browse latest Browse all 6136

How to select files in subdirectories by name and move all files containing "XXX" and "YYY" into new directories

Image may be NSFW.
Clik here to view.
Directory contents

Image may be NSFW.
Clik here to view.
Subdirectory contents

Hello all, how can I move all files with the name "ATAC" and all files with the name "RNA" into separate folders? The context is that in the current the directory, I have many subdirectories which contains fastq files with "ATAC" and "RNA" in their names; if the files were in the directory in not stored in another directory, it would be easy and I can just select the files using RNA* and ATAC*, but the problem is they are stored in subdirectories; how can I select the 2 subset of files and move them into new separate (one for ATAC, one for RNA) folders in this case?


Viewing all articles
Browse latest Browse all 6136

Trending Articles