• R/O
  • SSH

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

File Info

Rev. 40d64c8fcc38f25688bab0c7b3363a56fdefb2a2
Größe 1,823 Bytes
Zeit 2014-11-19 19:42:20
Autor Lorenzo Isella
Log Message

Simple bash scripts to copy/rename files.

Content

#!/bin/bash



array=("BE" "BG" "CZ" "DK" "DE" "EE" "IE" "EL" "ES" "FR" "IT" "CY" "LV" "LT" "LU" "HU" "MT" "NL" "AT" "PL" "PT" "RO" "SI" "SK" "FI" "SE" "UK" "HR" )

array2=("fig1" "fig2" "fig3" "fig4" "fig5" "fig6" "fig7" "fig8" "fig9" "fig10"  "fig11" "fig12" "fig13" "fig14"  )



echo "Array items:"
for item in ${array[*]}
do
    printf "   %s\n" $item

done





# rm $echo "./fig1/*"


# rm "./fig2/*"
# rm "./fig3/*"
# rm "./fig4/*"
# rm "./fig5/*"
# rm "./fig6/*"
# rm "./fig7/*"
# rm "./fig8/*"
# rm "./fig9/*"
# rm "./fig10/*"
# rm "./fig11/*"
# rm "./fig12/*"
# rm "./fig13/*"
# rm "./fig14/*"
# rm "./fig15/*"

for item in ${array2[*]}
do
    printf "   %s\n" $item

       
    rm $item/*
    # cp $item*1.png $item
    # cp $item*.csv $item

done




for item in ${array[*]}
do
    ext="_gbaord_and_gerd_pc_gdp*png"

    cp $item/$item$ext "./fig2"

    ext="_gbaord_and_gerd_mio*png"

    cp $item/$item$ext "./fig1"


    ext="_gbaord_and_gerd_pc_gov*png"

    cp $item/$item$ext "./fig3"


    ext="_gov_expenditure_pc*png"

    cp $item/$item$ext "./fig5"
   

    ext="_gov_expenditure_mio*png"

    cp $item/$item$ext "./fig4"


    ext="_gdp_growth*png"

    cp $item/$item$ext "./fig6"

    ext="_funding_to_public_by_source_mio*png"

    cp $item/$item$ext "./fig7"


    ext="_funding_to_public_by_source_perc*png"

    cp $item/$item$ext "./fig8"


    ext="_gov_funding_public_mio*png"

    cp $item/$item$ext "./fig9"
    
    ext="_gov_funding_public_pc*png"

    cp $item/$item$ext "./fig10"


    ext="_gov_funding_by_perf_perc_change.png"

    cp $item/$item$ext "./fig11"

    ext="_RD_abroad*png"

    cp $item/$item$ext "./fig12"

    ext="_abr_gbaord*mio_nac*png"

    cp $item/$item$ext "./fig13"

    ext="_abr_gbaord*pc_gdp*png"

    cp $item/$item$ext "./fig14"
    
    

    
done