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
• 410 views
•
link
updated
by
乙
•
written
by
genomes_and_MGEs •
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
Attribute number every time a given character shows
written by genomes_and_MGEs •Hey, I have a text file with 1_Ab 2_Cd 3_Ab 4_Cd 5_Ef 6_Ef And would like to attribute number every time a given character shows …
-
Filter rows below a given threshold
written by genomes_and_MGEs •Hey everyone, I have a numeric matrix like this one 1 4 0.439453125 1 5 0.03662109375 1 6 0.49609375 1 9 0.4384765625 1 14 0.55322265625 …
-
Only copy multifasta files from one directory to another
written by genomes_and_MGEs •Hey guys, I have a directory will a lot of fasta files, some single and some multi-fasta. Is there a way to copy only the …
-
Append fasta header to corresponding fasta filename
written by genomes_and_MGEs •Hey everyone, When you donwload a given assembly from Refseq NCBI, the filename with be for example GCF_006351845.1_ASM635184v1_genomic.fna and the corresponding fasta header >NZ_CP040904.1 Enterococcus …
-
Extract protein files from nucleotide accession numbers
written by genomes_and_MGEs •Hey everyone, I would like to extract all proteins, using a list of nucleotide accession numbers as input. For example, considering the `list.txt` with the …
-
List names in column that match a given word in another column
written by genomes_and_MGEs •Hey guys, I would like to list all lines in column 1 that match a given expression in column 3. For example, 1 2 3 …
-
Rename fasta-header based on a list
written by genomes_and_MGEs •Hey everyone, I have a multi-fasta file like this >NZ_CP023010.1_3129429..3372047 atattgagctaa.. >NZ_MRWY01000004.1_16177..110237 tcagtcgactcct... ... And a list of fasta-headers like this >NZ_CP023010_Elizabethkingia anophelis FDAARGOS_198 >NZ_MRWY01000004_Klebsiella …
-
Add strain name directly on fasta header
written by genomes_and_MGEs •Hey guys, I would like to add the strain name in from of the corresponding nucleotide accession. I have a multi-fasta file with headers like …
-
Rename several fasta-headers
written by genomes_and_MGEs •Hey guys, I have a multi-fasta file containing several extracted regions, such as >NZ_KI973281.1_1234..56789 atattgagctaaaaaaatcagttttccca... >NZ_LAAL01000032.1_5456..32476 tgcagaagtaagggggtaacaccatgcct... ... I would like to include strain name …
-
Batch rename RefSeq assembly for the corresponding organism name
written by genomes_and_MGEs •Hey everyone, I just downloaded several genomes from NCBI assembly. Let's say I downloaded all E. coli genomes. After unzipping all files, I'll have several …
Assuming you are using a linux environment and your files starts with
sample_*, you could do so:Assuming you have names like _samplexxx_:
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!