Giter Club home page Giter Club logo

cli's Introduction

Command Line Utilities

This repository is a collection of command line utilities that make my shell experience better. The utilities are written in Go and are available on Github. Some utilities are really simple, like upper and lower, but I find them easier to remember than the syntax to awk or tr to change the case of a string in the shell. Other utilities like stripext and stripfile remove the annoying need to quote or escape filenames that have a hyppen as a prefix.

$ basename ./-N0F1689aweRQf395IVo.json .json
-N0F1689aweRQf395IVo

basename -- -N0F1689aweRQf395IVo.json .json
-N0F1689aweRQf395IVo

### OR ###
 
$ stripext -N0F1689aweRQf395IVo.json
-N0F1689aweRQf395IVo

spilling misteak

NOTE: pushid comes from the themartorana pushID.go gist. All other code is original.

  • arr: print specified quoted column
  • coln: print specified column
  • erlnum: covert Erlang list of numbers to ascii
  • fire: retrieve firebase data
  • grop: filter objects from gron output
  • jkc: count json keys in multiple files
  • lower: convert to lower case
  • pushid: generate unique id
  • stripext: strip file extension
  • stripfile: strip file name
  • upper: convert to upper case

To compile all executables, just make in the top level directory. All source code is written in Go and the binaries will be installed in $GOPATH/bin.

$ make
cd arr && go install
cd coln && go install
cd erlnum && go install
cd fire && go install
cd group && go install
cd jkc && go install
cd lower && go install
cd pushid && go install
cd stripext && go install
cd stripfile && go install
cd upper && go install

cli's People

Contributors

sspencer 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.