Created
April 12, 2023 22:08
-
-
Save danieldownes/dc13a12cd2201eba1a7e61ecff30f53f to your computer and use it in GitHub Desktop.
Collapse many files into a single file
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
To collapse a whole project into a single file: | |
"cat files in current folder and all subfolders" | |
find . -type f -exec cat {} + | |
cat accepts multiple arguments: | |
cat * */* | |
to cat everything in the current directory and in all subdirectories: | |
cat * */* */*/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment