I have a directory with several files, and I would like to move the files that match the name in a given list to another directory. Can you help me out with this?
Assuming you are using a linux environment and your files starts with sample_* , you could do so:
mv sample_* path/to/new/directory
Assuming you have names like _samplexxx_:
mv *_sample*_* path/to/new/directory
We believe that this post does not fit the main topic of this site.
not related to bioinformatics. just a basic linux problem. https://stackoverflow.com/questions/41288970/ https://unix.stackexchange.com/questions/456444
For this reason we have closed your question. This allows us to keep the site focused
on the topics that the community can help with.
If you disagree please tell us why in a reply below, we'll be happy to talk about it.