修訂 | 1f71ab9896d98763b7ce830e74f727380a85eac3 (tree) |
---|---|
時間 | 2014-11-19 01:10:15 |
作者 | Lorenzo Isella <lorenzo.isella@gmai...> |
Commiter | Lorenzo Isella |
A simply script to remove and copy files.
@@ -0,0 +1,23 @@ | ||
1 | +#!/bin/bash | |
2 | + | |
3 | + | |
4 | + | |
5 | +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" ) | |
6 | + | |
7 | + | |
8 | +echo "Array items:" | |
9 | +for item in ${array[*]} | |
10 | +do | |
11 | + printf " %s\n" $item | |
12 | + | |
13 | +done | |
14 | + | |
15 | + | |
16 | +for item in ${array[*]} | |
17 | +do | |
18 | + rm $item/* | |
19 | + cp $item*1.png $item | |
20 | + cp $item*.csv $item | |
21 | + | |
22 | +done | |
23 | + |