#!/bin/bash if [ "$#" -lt 1 ] then echo "You need to supply a folder for import!" exit 1 fi find $1 -name "*.json" -type f | while read line do echo "Processing $line" ../../bin/python3 import.py "$line" done