https://github.com/sammers21/source_collector
A bash script which can сollect all sources into a single file
https://github.com/sammers21/source_collector
bash-script find findfile linux macos source-code
Last synced: 3 months ago
JSON representation
A bash script which can сollect all sources into a single file
- Host: GitHub
- URL: https://github.com/sammers21/source_collector
- Owner: Sammers21
- License: mit
- Created: 2017-05-07T09:02:46.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-12T13:20:41.000Z (about 9 years ago)
- Last Synced: 2025-05-29T10:44:28.650Z (about 1 year ago)
- Topics: bash-script, find, findfile, linux, macos, source-code
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Usage ./source_code.sh [FILE_TYPE] [DIRECTORY]
WHERE
FILE_TYPE is a type of source code file like a java, c, cpp, go, php, js, html
DIRECTORY is a path to dircetory with your sources
Results of collection can be found in source_code.txt file in the directory where you call this script
Notes: this script works only in *nix-like environment. NOT IN WINDOWS
Example of usage:
./source_code.sh java .
Find all .java files in current dir and all subdirs and collect it in one file ./source_code.txt
Author: Pavel Drankov (c) 2017