-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_pipelines.sh
27 lines (20 loc) · 928 Bytes
/
run_pipelines.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Navigate to the pipelines folder
cd pipelines || { echo "Failed to cd into pipelines"; exit 1; }
# Run extracted.py
echo "Running extracted.py..."
python extracted.py
# Run anual_top_sales.py
echo "Running anual_top_sales.py..."
python anual_top_sales.py ../databases/extracted.txt > ../databases/anual_top_sales.txt
# Run anual_total_sales.py
echo "Running anual_total_sales.py..."
python anual_total_sales.py ../databases/extracted.txt > ../databases/anual_total_sales.txt
# Run best_seller_decades.py
echo "Running best_seller_decades.py..."
python best_seller_decades.py ../databases/extracted.txt > ../databases/best_seller_decades.txt
# Run best_seller_history.py
echo "Running best_seller_history.py..."
python best_seller_history.py ../databases/extracted.txt > ../databases/best_seller_history.txt
# Print success message
echo "Pipeline execution completed. Outputs saved in the databases folder."