Skip to content

Instantly share code, notes, and snippets.

View aeltorio's full-sized avatar

LE MEILLAT aeltorio

  • French alps
View GitHub Profile
@aeltorio
aeltorio / collect_concatenate_github_org_README.sh
Created October 8, 2024 10:51
Collect and Concatenate All README.md Files of a GitHub Organization
#!/bin/bash
# Set the GitHub organization from the environment variable or default to "sctg-development"
GITHUB_ORG=${GITHUB_ORG:-"sctg-development"}
# Set the GitHub API endpoint
GH_API_Endpoint="https://api.github.com/orgs/${GITHUB_ORG}/repos"
# Check if the required command-line tools are installed
if ! command -v curl &> /dev/null; then