Solution 0 4 1: Difference between revisions

From Wiki Max
Jump to navigation Jump to search
Created page with " Using bash scripting #!/bin/bash # filein=$1 # ene=`grep ! $filein | awk '{print $(NF-1)}'` alat=`grep "lattice parameter" $filein | awk '{print $(NF-1)}'` # echo $a..."
 
No edit summary
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
* Back to the previous page: [[Structural and electronic properties of semiconductors and metals #Convergences]]


Using bash scripting
Using bash scripting

Latest revision as of 12:54, 9 December 2020

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.