This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Move files that match the names on a list

Hey everyone,

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? Thanks!

genome sequence

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

Hello genomes_and_MGEs!

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.

Cheers!

0 answers

No answers yet.

Log in to answer this question.