Solution 0 4 1
Revision as of 15:01, 2 December 2020 by Daniele Varsano (talk | contribs)
- Back to the previous page: Output file description
Using bash scripting
#!/bin/bash # filein=$1 # ene=`grep ! $filein | awk '{print $(NF-1)}'` alat=`grep "lattice parameter" $filein | awk '{print $(NF-1)}'` # echo $alat $ene
Probably more elegant and general using awk or (as today's standard) python.