[English version] | [Russian version]
Simple CLI tool written in Go to analyze text.
I made this project for learning Go, Git, GitHub and just for fun, so don't be too serious.
- Count lines
- Count words
- Count letters (excluding spaces)
- Count spaces
- Read from file
- Flags (in β version)
./textstats-[your version/arch] [Flag(s)]Type your text
Finish input with Enter & Control + D (Linux/MacOS)
or
./textstats-[your version/arch] text.txt"text.txt" - any text file.
Correctly supported formats: any UTF-8 text file
For example: .txt .md .go .py .json ...
All supported flags:
-h, --help - Shows help message and exit
-v, --version - Shows version and exit
-l, --lines - Shows only lines count
-w, --words - Shows only words count
-s, --spaces - Shows only spaces count
-c, --letters - Shows only letters count
And you also can use it with files.
Hello world
In your string(s) 1 lines
In your string(s) 2 words
In your string(s) 1 spaces
In your string(s) 10 letters
text.txt
In your string(s) 6 lines
In your string(s) 29 words
In your string(s) 19 spaces
In your string(s) 78 letters
-l
Hello world
In your string(s) 1 lines
-v
TextStats v1.5.0 (11-04-26 release)
-c example.md
In your string(s) 6561 letters
- Words are separated by whitespace
- Unicode is supported
Download binary from Releases page.
or
git clone https://github.com/Tima-games/TextStats.git
cd TextStats
go build -o textstats- Count lines
- Count words
- Count letters
- Count spaces
- README
- Read from file
- Flags
- Windows support
- GUI
- Built-in text editor
...and much more