The FASTQ format is a text-based format for storing both a biological sequence (usually nucleotide sequence) and its corresponding quality scores.
A FASTQ file normally uses four lines per sequence:
$ ./FASTQ_summary.sh
Enter the name of the FASTQ file: FASTQ.txt
Enter the name of the output file: output_file.txt
Processing FASTQ.txt...
TGTTGAATTGAGAGCTTGTGTTNAGTAGATAGTTGA
CCCACGTATCCAAGTCGAAGAGNAATTGATTTTCCC
AGGGAGGGAGGGAGTGAGATTGNTTCGATCGCCAAT
CTGGGTTTTTGTGTTATTGAGANTCTGAGTTTGAGA
TTGTTCCTTGACGAGATTGGTGNGGCTTACGATGAG
GATCGGAAGAGCTCGTATGCCGNCTTCTGCTTGAAA
GCATCGAAGCCAACCTCGAACTNCTGGCCGTGGCCG
TAAGCGTGTGGATCTAAACAATNACAAGGAGACTTT
TATCGTCGCTATCGGGAGCTTTNTCTAGATCGGAAG
TGCCGTTGATTAGTCCATTCTCNGAAGGAGAGATAC
ATGTCTCGCAAACCGGAAAACANACGTTAAGTCCGG
GTCCCTCGTTTACAGACTCAGANGTGAATAGAAAAG
Sequences have been written to output_file.txt
$ ./FASTQ_summary.sh
Enter the name of the FASTQ file: FASTQ2.txt
Enter the name of the output file: output_file.txt
Error: FASTQ2.txt does not exist.
$ echo $?
1