Created
March 9, 2025 17:31
-
-
Save gWOLF3/8a273423ec2b044de37f132f14500e79 to your computer and use it in GitHub Desktop.
scat or "super cat" ; for providing LLMs folder file context
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scat() { | |
local dir="${1:-.}" | |
find "$dir" \ | |
-type d -exec echo -e "Directory: {}\n" \; -o \ | |
-type f \ | |
\( -name "*.js" -o -name "*.json" -o -name "*.html" -o -name "*.css" -o -name "*.md" -o -name "*.txt" \) \ | |
-exec echo -e "\n=== File: {} ===\n" \; \ | |
-exec cat {} \; \ | |
-exec echo -e "\n--- End of File ---\n" \; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment