# How to convert raw sequence to FASTA format with awk

**URL:** <https://help.galaxyproject.org/t/how-to-convert-raw-sequence-to-fasta-format-with-awk/6528>\
**Category:** usegalaxy.eu support\
**Created:** [August 17, 2021, 2:14pm UTC](https://help.galaxyproject.org/t/how-to-convert-raw-sequence-to-fasta-format-with-awk/6528 "2021-08-17T14:14:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![colindaven](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/colindaven/32/2136_2.png) [@colindaven](https://help.galaxyproject.org/u/colindaven)\
**Post date:** [August 17, 2021, 2:14pm UTC](https://help.galaxyproject.org/t/how-to-convert-raw-sequence-to-fasta-format-with-awk/6528/1 "2021-08-17T14:14:46Z")

</div>

Dear all,

we had a question here about converting raw sequence (one sequence per line) from the output of the select tool, when run on a FASTQ file, to FASTA format.

This was a good solution.

1. Select the awk tool
2. Enter the following (no typical awk outer quotes! ‘’): {$1 = “\>seq\_“i++”\n” $1 } 1
3. Change the dataset format to fasta
4. Done

Hope that helps someone,  
Colin
