Difference between revisions of "Conversion between different data file formats"

From CUC3
Jump to navigation Jump to search
import>Em427
 
import>Em427
Line 7: Line 7:
 
next type
 
next type
   
awk -f xyz2inpcrd input.xyz outpur.inpcrd
+
awk -f xyz2inpcrd input.xyz outpur.inpcrd

Revision as of 14:48, 30 April 2008

xyz -> inpcrd

prepare file xyz2inpcrd containing the following line:

  {printf("%.7f %.7f %.7f "), $1, $2, $3} {getline} {printf("%.7f %.7f %.7f\n"), $1, $2, $3}

next type

  awk -f xyz2inpcrd input.xyz outpur.inpcrd