Question: (Closed) Move files that match the names on a list
gravatar for genomes_and_MGEs
7 months ago by
genomes_and_MGEs0 wrote:

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!

sequence genome • 102 views
ADD COMMENTlink modified 7 months ago by badredda130 • written 7 months ago by genomes_and_MGEs0

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
ADD REPLYlink modified 7 months ago • written 7 months ago by badredda130

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.

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.


ADD REPLYlink written 7 months ago by Pierre Lindenbaum127k
Please log in to add an answer.
The thread is closed. No new answers may be added.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1113 users visited in the last hour