for file in * do if [[ -d "$file" ]]; then cd $file mkdir migrations touch migrations/__init__.py cd .. fi done