-bash-4.0$ head -n 4 gene_Start_End.gff
chr1 AADACL3 12776344 12788726 +
chr1 AADACL4 12704566 12727097 +
chr1 ABCA4 94458793 94586705 -
chr1 ABCB10 229653926 229694442 -
-bash-4.0$ cat gene_Start_End.gff | awk '{print $1"\t"$3"\t"$4"\t"$2"\t"$5;}' | head -n 4
chr1 12776344 12788726 AADACL3 +
chr1 12704566 12727097 AADACL4 +
chr1 94458793 94586705 ABCA4 -
chr1 229653926 229694442 ABCB10 -
-bash-4.0$
Se fizer
ReplyDeletehead -n 4 | awk '{print $1"\t"$3"\t"$4"\t"$2"\t"$5;}'
vai ter o mesmo resultado, só que com um custo menor!!!