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 tabulated files (for example: blast output in columns separated by a tabulation = -outfmt 6; or gff files).

Following are some examples:

The file filename.tab contains 12 columns

code

head filename.tab

<code

How to invert the columns in the tabulated file filename.tab

awk_for_tabulated_files.1623944732.txt.gz · Last modified: by 134.190.225.24