Settings

Theme

Repo to AI: Bash one-liner to concatenate directory contents for LLM

firasd.substack.com

2 points by firasd 2 months ago · 1 comment

Reader

firasdOP 2 months ago

I’ve found this quick command using standard Linux utilities helpful:

find . -type f ! -name 'combined_output.txt' ! -name '.png' ! -name '.css' -print0 | xargs -0 -I {} sh -c 'echo "Full path: {}"; echo "-------------------"; cat "{}"; printf "\n-------------------\n"' > combined_output.txt

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection