Giter Site home page Giter Site logo

tools's Introduction

CI

๐Ÿ› ๏ธ tools

My blog post: Beating grep with Go


A bag of toys. A project to take ownership over the terminal tools I use every day.

Projects

grup (grep)

A replacement for (my usage of) grep. Faster than grep.

Options:

  • -n show line numbers
  • -re treat query as a regular expression
  • -w (debug) set number of search workers

Quirks:

Example:

grup -n -re ^module .
# go.mod:1 module github.com/healeycodes/tools

grup -n "\"bufio\"" .
# utils/search.go:4 	"bufio"

el (ls)

A replacement for (my usage of) ls.

Options:

  • -h ignore entries starting with .
  • -d sort by date and display metadata

Quirks:

  • Display dot files by default
  • Sorted alphabetically (with a lowercase compare)
  • Directories are put first (unless -d is passed)

Example:

el
# utils/  .gitignore  el  go.mod  main.go  README.md

el -d utils/
# 2022-04-17 13:27  695 B listfiles_test.go
# 2022-04-17 13:18 2.1 kB listfiles.go
# 2022-04-15 13:49    0 B listfiles_test_files/

kat (cat)

A replacement for (my usage of) cat.

Example:

echo 1 | kat
# 1

echo 1 >> some_file
kat some_file
# 1

Tests

Test all projects.

./test.sh

Build

Build all projects (for: windows, linux, darwin).

./build.sh

tools's People

Contributors

healeycodes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.