Repo to AI: Bash one-liner to concatenate directory contents for LLM firasd.substack.com 2 points by firasd 14 hours ago
firasd 14 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
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