[p@login02 new]$ parallel --dry-run 'mv {} {=s|^(SRR\d+).*([1,2])(.fastq.gz)$|$1_R$2$3|=}' ::: *.fastq.gz
Academic tradition requires you to cite works you base your article on.
When using programs that use GNU Parallel to process data for publication
please cite:
O. Tange (2011): GNU Parallel - The Command-Line Power Tool,
;login: The USENIX Magazine, February 2011:42-47.
This helps funding further development; AND IT WON'T COST YOU A CENT.
If you pay 10000 EUR you should feel free to use GNU Parallel without citing.
To silence the citation notice: run 'parallel --bibtex'.
mv SRR6003546_Brain-IGA_in_Labeo_rohita_1.fastq.gz SRR6003546_R1.fastq.gz
mv SRR6003546_Brain-IGA_in_Labeo_rohita_2.fastq.gz SRR6003546_R2.fastq.gz
mv SRR6003547_Brain-PSR_from_Labeo_rohita_1.fastq.gz SRR6003547_R1.fastq.gz
[p@login02 new]$ ls
SRR6003546_Brain-IGA_in_Labeo_rohita_1.fastq.gz SRR6003547_Brain-PSR_from_Labeo_rohita_1.fastq.gz
SRR6003546_Brain-IGA_in_Labeo_rohita_2.fastq.gz
Hi I used this command but the file name did not change. Could you pl tell me what I can do next? Thank you for your response.
rename perl expression.
https://learnbyexample.github.io/learn_perl_oneliners/perl-rename-command.html
brename
https://github.com/shenwei356/brename
Remove '-n' if you are okay with dry-run.
Remove
--dry-runif you are okay with dry-run.in bash/zsh:
Remove
echoif you are okay with dry-run.