Wednesday, July 27, 2011

Skip first line using awk's FNR>1

Skip first line using FNR>1

$ head chr4-dp5.sorted.coverage | awk '{ if(FNR>1) {split($1, a, ":"); print a[1]"\t"a[2]"\t"$2"\t"$3"\t"$4} }'

No comments: