Author: Cuddiecoder
License: MIT
This project analyzes renewable (solar and wind) vs coal energy production data using a simple Bash script.
It reads data from an OWID (Our World in Data) CSV file and finds either the minimum or maximum energy production by country or year.
- Works directly with CSV files — no need for Python or external dependencies.
- Supports both country-based and year-based analysis.
- Handles both solar_wind and coal energy types.
- Uses awk for fast, efficient computation.
# Find max solar/wind production for the USA
./analyze_energy.sh OWID_SolarWind_vs_Coal.csv USA solar_wind max
# Find country with min coal production in 2020
./analyze_energy.sh OWID_SolarWind_vs_Coal.csv 2020 coal min-
Make the script executable:
chmod +x analyze_energy.sh
-
Run the examples above or modify them to analyze other countries/years.
This project is licensed under the MIT License — see the LICENSE file for details.