1 2 3 4 5 6
#!/bin/bash rm *.txt *.csv unzip $1 for file in *.txt; do mv $file ${file%.txt}.csv; echo $file; bash import.bash ${file%.txt} ; done