I am dealing with a long data in the vim file. I want to separate the positive values and negative values in the 3rd column in separate files.
Example:
1.000 3.889 4.666
4.889 2.809 -8.687
3.896 4.797 2.808
2.797 4.098 -0.458
Now I want to have two separate files based on the positive and negative values in 3rd column.
I use an awk command as
awk '$3 ~ /\-/ { print $0 }' chh.dat1
but it is not working.