libere-tes-chaine-de-mots/import_data/run_all_imports.sh
2024-10-02 21:53:37 -04:00

17 lines
No EOL
419 B
Bash

#!/bin/bash
# Navigate to the directory containing the scripts
cd "$(dirname "$0")" || exit
# Find and execute all Python scripts matching the pattern
for script in [0-9][0-9]_importation_*.py
do
if [ -f "$script" ]; then
echo "Running $script..."
python3 "$script"
echo "Finished $script"
echo "--------------------"
fi
done
echo "All importation scripts have been executed."