There are several ways you can convert fastq to fasta sequences. Some methods are listed below.
Using SED
sed can be used to selectively print the desired lines from a file, so if you print the first and 2rd line of every 4 lines, you get the sequence header and sequence need...
#Convert #fasta file to uppercase/lowercase, without altering the annotation line $ awk '{ if ($0 !~ />/) {print toupper($0)} else {print $0} }' name.fasta
#Convert a #multi-line #fasta to a #singleline #fasta $ awk '!/^>/ { printf "%s", $0; n = "\n" } /^>/ { print n $0; n = "" } END { printf "%s", n }' sample1.fa > sample1_singleline.fa