All Projects → lostutils → groupby

lostutils / groupby

Licence: MIT License
Group lines by a regex

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to groupby

flawesome
Productivity Tool
Stars: ✭ 56 (+300%)
Mutual labels:  utility
cypress-angularjs-unit-test
Unit test Angularjs code using Cypress.io test runner
Stars: ✭ 23 (+64.29%)
Mutual labels:  utility
Resource Monitor
Resource_Monitor is a GNOME Shell extension that Monitor the use of system resources like cpu, ram, disk, network and display them in GNOME Shell top bar.
Stars: ✭ 62 (+342.86%)
Mutual labels:  utility
google-photos-exif
A tool to populate missing `DateTimeOriginal` EXIF metadata in Google Photos takeout, using Google's JSON metadata.
Stars: ✭ 288 (+1957.14%)
Mutual labels:  utility
osmicsx
An utility style framework for React Native
Stars: ✭ 162 (+1057.14%)
Mutual labels:  utility
Isometry
📦 Sketch plugin that allows to create isometric projections from layers
Stars: ✭ 18 (+28.57%)
Mutual labels:  utility
W1nDro1d
A simple tool to manage Windows 11's Subsystem for Android "manually", install APK and XAPK, toggle fullscreen, list installed Android Apps, among other things
Stars: ✭ 26 (+85.71%)
Mutual labels:  utility
Pagination-Utils
A collection of methods to make message pagination with JDA easier.
Stars: ✭ 20 (+42.86%)
Mutual labels:  utility
redtimer
RedTimer - Redmine Time Tracker
Stars: ✭ 59 (+321.43%)
Mutual labels:  utility
pv
Unix Pipe Viewer (pv) utility in Node.js
Stars: ✭ 20 (+42.86%)
Mutual labels:  utility
deno-debug
Debugging utility for deno. Ported from https://npmjs.com/debug
Stars: ✭ 15 (+7.14%)
Mutual labels:  utility
l2cu
L²CU: LDraw Linux Command line Utility
Stars: ✭ 14 (+0%)
Mutual labels:  utility
Shadbot
A configurable multipurpose bot bringing you music, multiplayer games, moderation commands and more!
Stars: ✭ 48 (+242.86%)
Mutual labels:  utility
pino-caller
🌲 Include call site of pino log messages
Stars: ✭ 35 (+150%)
Mutual labels:  utility
MentalGL
Single header OpenGL utility library in the public domain
Stars: ✭ 20 (+42.86%)
Mutual labels:  utility
fuzzy-sys
Utility tool for using systemctl interactively
Stars: ✭ 106 (+657.14%)
Mutual labels:  utility
smcutil
SMC utility for modifying and examining Apple's SMC payloads.
Stars: ✭ 30 (+114.29%)
Mutual labels:  utility
xbytes
Parse bytes to human readable sizes (4747) → ('4.75 KB') and vice versa.
Stars: ✭ 17 (+21.43%)
Mutual labels:  utility
YetAnotherKeyDisplayer
The application for displaying pressed keys of the keyboard
Stars: ✭ 88 (+528.57%)
Mutual labels:  utility
sc2gears
The COMPLETE (!) source code of the Sc2gears universe (Sc2gears app + Sc2gears Database + web-based parsing engine - bundled in an Eclipse project).
Stars: ✭ 30 (+114.29%)
Mutual labels:  utility

groupby

Group lines base on a regular expression

groupby (lostutils) 0.1.5
Group lines based on a given regex.

USAGE:
    groupby [FLAGS] [OPTIONS] <regex>

FLAGS:
        --count-only    
            Only show the count of matches per group.

    -h, --help          
            Prints help information

    -u                  
            Remove duplicate lines in the same group

    -V, --version       
            Prints version information


OPTIONS:
    -g <group-id>        
            The group-id to group by. Can be an index or a group name.


ARGS:
    <regex>    
            The regex to group by. The match will use the entire expression, unless a group-id is provided.

Usage

// chat.txt
Message from Alice: Hello!
Message from Bob: Hi!
Message from Alice: Did you try groupby?
Message from Bob: Yes. It is really cool! 
$ cat chat.txt | groupby "Message from (\w+):" -g 1
***NO-MATCH***
    // chat.txt
Alice
    Message from Alice: Hello!
    Message from Alice: Did you try groupby?
Bob
    Message from Bob: Hi!
    Message from Bob: Yes. It is really cool! 
$ cat chat.txt | groupby "Message from (\w+):" -g 1 --count-only
    1 ***NO-MATCH***
    2 Alice
    2 Bob
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].