Uniqtoo
A version of `sort | uniq -c` with output that updates in real-time as each line is parsed
Install / Use
/learn @JakeWharton/UniqtooREADME
uniqtoo
A single binary replicating the behavior of sort | uniq -c | sort -nr with output that updates
in real-time as each line is parsed.
Usage
Pipe something line-based into uniqtoo the same as you would into sort | uniq -c.
Here is an example counting the extensions of files in this repository with a 0.5s delay in between.
You can also supply the input as a file or file descriptor as an argument.
$ uniqtoo input.txt
Install
Rust / Cargo
$ cargo install uniqtoo
The binary will be placed in your ~/.cargo/bin which should be on your shell's $PATH.
Docker
A container with the binary is available from Docker Hub and GitHub Container Registry.
Use docker run instead of directly using the binary.
input_command | docker run --rm -i -a STDIN -a STDOUT jakewharton/uniqtoo
License
Copyright 2021 Jake Wharton
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Related Skills
node-connect
353.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
353.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
353.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
