BASH, Dihedral angle with four points
Points: A -2.08576 1.76533 -0.46417 B -0.95929 0.87554 0.03365 C 0.28069 1.66193 0.42640 D 0.62407 2.22927 -0.44649 So far, I have done: #!/bin/bash awk 'NR==1' $FILE > LINEA awk 'NR==1' $FILE > LINEB awk 'NR==1' $FILE > LINEC awk 'NR==1' $FILE > LINED x1=`awk '{print $2}' LINEA` # x1 y1=`awk '{print $3}' LINEA` # y1 z1=`awk '{print $4}' LINEA` # z1 x2=`awk '{print $2}' LINEB` # x2 y2=`awk '{print $3}' LINEB` # y2 z2=`awk '{print $4}' LINEB` # z2 x3=`awk '{print $2}' LINEC` # x3 y3=`awk '{print $3}' LINEC` # y3 z3=`awk '{print $4}' LINEC` # z3 x4=`awk '{print $2}' LINED` # x4 y4=`awk '{print