Giter Site home page Giter Site logo

tools's Introduction

This is a collection of command-line tools I wrote to make various repetitive tasks more convenient. They will typically take input from standard input and will output to standard output. I make an effort to not use external libraries so that compilation requires the least possible dependencies. Note that some other tools/scripts I write for other projects use these tools and assume they can be found in your PATH.

  • numlist: Perform various basic tasks on a list of numbers

    • The list of numbers must be passed in via standard input
    • Run it without arguments to see the usage message, which contains a list of functions
    • The list of numbers can be integers or decimals: the tool handles both
    • The numbers must be delimited by whitespace
    • If your numbers are not delimited by whitespace, you can use tr to fix your list. For example:
    echo "1,2,3,4,5" | tr ',' ' ' | numlist -sum
  • touchall.sh: Recursively touch all files in current directory (and subdirectories)

    • Run it without arguments

INSTALLATION

  1. Clone the GitHub repository wherever you want to install the tools. For example, if I wanted to install the collection into a directory ~/bin:

    cd ~/bin
    git clone https://github.com/niemasd/tools.git
  2. Compile the tools with make (the Makefile should compile all of the tools automatically). To continue the previous example:

    cd ~/bin/tools
    make
  3. OPTIONAL: Other tools/scripts I write for other projects may expect these tools to be found in your PATH, so I would suggest adding the directory to your PATH variable. To continue the previous example, if I were to add it to my .profile:

    echo "PATH=~/bin/tools:$PATH" >> ~/.profile

tools's People

Contributors

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