Thread
:
Remove a part of a filename in a Bash loop
View Single Post
10-09-2019, 10:34 AM
#
2
SNPsaurus
Registered Vendor
Location: Eugene, OR
Join Date: May 2013
Posts: 521
You want to split the string on a "." delimiter and then keep the first two parts. Or use ".fastq.sam.bam" as a delimiter, I suppose!
https://www.tutorialkart.com/bash-sh...-split-string/
__________________
Providing nextRAD genotyping and PacBio sequencing services.
http://snpsaurus.com
SNPsaurus
View Public Profile
Send a private message to SNPsaurus
Visit SNPsaurus's homepage!
Find More Posts by SNPsaurus