Bash scripts

From The Yambo Project
Revision as of 07:21, 20 April 2017 by Daniele (talk | contribs) (Created page with "===generate_inputs_1.sh=== #!/bin/bash bands='10 20 30 40' blocks='1 2 3 4 5' for i in ${bands} do for j in ${blocks} do sed -e "s/1 | 10/1 | $i/g" gw_pp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

generate_inputs_1.sh

#!/bin/bash 
bands='10 20 30 40'
blocks='1 2 3 4 5'
for i in ${bands}
 do
  for j in ${blocks}
   do
    sed  -e "s/1 | 10/1 | $i/g"  gw_ppa.in  > tmp$i
    sed  -e "s/NGsBlkXp= 1/ NGsBlkXp= $j/g"  tmp$i > gw_ppa_$i'b_'$j'Ry.in'
    rm tmp*
   done
 done