Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enricobacis/stop
stdin top
https://github.com/enricobacis/stop
Last synced: 10 days ago
JSON representation
stdin top
- Host: GitHub
- URL: https://github.com/enricobacis/stop
- Owner: enricobacis
- Created: 2015-09-02T17:02:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-02T17:13:14.000Z (over 9 years ago)
- Last Synced: 2024-11-07T21:09:50.384Z (2 months ago)
- Language: Python
- Size: 148 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# stop
*stdin top*
Show the most common stdin entries from a pipe.
## Usage
usage: stop.py [-h] [-l L] [-e S]
Show most common lines from stdin
optional arguments:
-h, --help show this help message and exit
-l L, --lines L print L lines
-e S, --every S print every S seconds## Example
The script [`test/test.py`](test/test.py) prints gaussian data with mean *100*. Pipe it into `stop` to see the most common values and their count:
test/test.py | ./stop.py
Output:
1107 108
1097 100
1082 97
1057 99
1056 93
1050 113
1047 114
1043 106
1038 104
1037 91
1036 92
1035 101