dear all,
i've got a code, written in awk. it also worked in gawk, but now i only have the nawk available and it doesn't work anylonger.
so...here is the code:
this code searches for differences in the first column, which are larger than 2 and splits the file into pieces by this.
what changes? i hope anybody can help me!!
thanks a lot!!!
i've got a code, written in awk. it also worked in gawk, but now i only have the nawk available and it doesn't work anylonger.
so...here is the code:
Code:
awk '(x-$1)*((x>$1)+(-1*(x<$1)))>2{++f}\{print>"outfile"f;x=$1}' infile
this code searches for differences in the first column, which are larger than 2 and splits the file into pieces by this.
what changes? i hope anybody can help me!!
thanks a lot!!!