Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2930

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

$
0
0

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?

main post: https://stackoverflow.com/questions/78718916/how-to-select-files-in-subdirectories-by-name-and-move-all-files-containing-xxx?noredirect=1#comment138788812_78718916

[was asked to move here]


Viewing all articles
Browse latest Browse all 2930

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>