Print path and content of all files recursively
The program reads and prints the content of files based on specified options.
catr <paths..>
Option | Description | Default |
---|---|---|
--list , -l |
List files without displaying content | false |
--include , -i |
Include filter | ["*"] |
--exclude , -e |
Exclude filter | [""] |
--format , -o |
Customize how the file content is printed | "%s\n---\n%s\n---\n\n" |
--text |
Only text-files (ASCII, UTF8, UTF16) | true |
--ignoreEmpty |
Ignore empty files | true |
--trimFileEnding |
Trim newlines from end of files | true |
--parallel |
Parallel processing, but out-of-order | false |
catr *.go *.md
catr -l -i ".java" .
To install the program, simply build it using the Go build tools and run the executable.