Section: Script recipes

Describe large files in a shell loop

bash
bash
while IFS= read -r -d "" file; do
  description=$(copilot -p "Describe this file briefly: $file" -s 2>/dev/null)
  echo "$file => $description"
done < <(find . -type f -size +10M -print0)
Explanation

This is adapted from the official automation quickstart and is a good pattern for repo reporting.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Script recipes
Draft release notes from Git history
Combine git and Copilot for release automation.
OpenIn sheetbashsame section
Review generated SQL migrations
Use Copilot as a quick reviewer in a script.
OpenIn sheetbashsame section
Produce an onboarding report automatically
Generate repo setup instructions in Markdown.
OpenIn sheetbashsame section
Capture output in a script
Store Copilot output in a shell variable.
OpenIn sheetbash3 tag match
Pipe prompt text and redirect the answer
Generate output for downstream steps.
OpenIn sheetbash2 tag match
Run a prompt with automatic tools
Let Copilot use tools during a non-interactive run.
OpenIn sheetbash2 tag match