#!/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