1 2 3 4 5 6 7 8 9 10 11 12 13
#!/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