Yup! :) I figured it out shortly after posting. Thanks!
• 0 views
•
link
I am using the DSRC toolkit to decompress many RNA-seq .dsrc files to .fastq, and I would like to batch convert multiple files at once. When I run,
for i in *.dsrc ; do dsrc d -t63 -s $i > $i.fastq ; done
the files have a .dsrc.fastq extension. How do I remove the .dsrc from the file name? Thanks in advance.
The correct bash parameter is ${i%.*}, as in: for i in *.dsrc ; do dsrc d -t63 -s $i > ${i%.*}.fastq ; done.
Log in to answer this question.