User Tools

Site Tools


awk_for_tabulated_files

This is an old revision of the document!


By default, awk scans a file line by line, whereby a line is ending by a carriage return (\n) and further split the line into fields, by default separated by a tabulation “\t” although other field separators can be defined.

The command awk can be really useful to edit or parse tabulated files (for example: blast output in columns separated by a tabulation = -outfmt 6; or gff files).

We will see how to use awk on a blast output file (-outfmt 6)

How to invert 2 columns (fields)

How to print a line if the name of the query (first column) contains “”

How to print a line if the start of the hit in the target sequence is greater than XXX

awk_for_tabulated_files.1624462165.txt.gz · Last modified: by 71.7.206.175