https://github.com/cyrus2281/scripts
bash scripts to automate things
https://github.com/cyrus2281/scripts
bash bash-script count-lines counter line-counter script
Last synced: 6 months ago
JSON representation
bash scripts to automate things
- Host: GitHub
- URL: https://github.com/cyrus2281/scripts
- Owner: cyrus2281
- License: mit
- Created: 2021-02-24T14:47:22.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-27T03:28:19.000Z (about 2 years ago)
- Last Synced: 2025-04-15T06:44:48.444Z (10 months ago)
- Topics: bash, bash-script, count-lines, counter, line-counter, script
- Language: Shell
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash Scripts for automation and customization
### LineCounter
This bash script will go recursively through all the files and will count all the lines and return the total number of lines
If not path is provided or the provideded path doesn't exists, it will recursively count from current directory.
#### Example
```sh
$ bash ../Scripts/CountLines.sh ./src
There are a total of 3050 lines
```
---
### AccountStats
This Bash will count all the lines add, removed, and total number of line for the given git user name for the current git repository
#### Example
```sh
$ bash ../Scripts/AccountStats.sh "Cyrus Mobini"
added lines: 212 removed lines: 131 total lines: 343
```
---
### Git Aliases
A bunch of bash aliases that shortens the most commonly used git commands.
---
Copyright: Cyrus Mobini 2023