Conversion between different data file formats: Difference between revisions

From CUC3
Jump to navigation Jump to search
import>Em427
No edit summary
 
import>Em427
No edit summary
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 13: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