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

2 pointsposted 11 hours ago
by firasd

1 Comments

firasd

11 hours 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