Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Repo to AI: Bash one-liner to concatenate directory contents for LLM (firasd.substack.com)
2 points by firasd 6 months ago | hide | past | favorite | 1 comment


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: