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

(firasd.substack.com)

2 points | by firasd 12 hours ago ago

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