go-file-regex

command module
v0.0.0-...-dd848cc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2022 License: MIT Imports: 6 Imported by: 0

README

go-file-regex

use a capture group in RegEx for what you want to list

#  find all 10 to 20 letter words in moby dick
./go-file-regex -f moby.txt -r '\W([\w]{10,20})\W' -v

# find all digits and find frequencies for each
./go-file-regex -f pi.txt -r '(\d)' -v

# find all digits and find frequencies for each
./go-file-regex -f pi.txt -r '(\d)' -v


# find all first digits and find frequencies for each
./go-file-regex -f pops.json -r '\:\W+?(\d)' -s

# list world populations (w/o country/ region)
./go-file-regex -f pops.json -r '"Year": "2010",\W+"Value": "(\d+)"' -s

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL