GithubHelp home page GithubHelp logo

binx's Introduction

binx

Assorted command line scripts for common tasks.

aggerate

Assume that each line in the input is a key value pair, and aggregate together all the values of each key. The default options assume that each value is a number, and adds them all together.

coinflip

Produce a random sample of values from a given probability distribution. The default options produce a random coin flip from a single fair coin.

count

Count the number of times that each line appears repeated in the input. By default the output is sorted showing the most common values first.

escapehtml

Pass the input through encode_entities to escape away any characters with special meaning in HTML. This produces an output safe to paste within the source of an HTML document, which will render just as plain text.

exts

Given a list of files as input, output a list of all their file extensions. The extension of a file is considered to be anything from the first dot to the end of the file name. The list of files can be read from standard input (the default) or from a directory in the system.

gremlins

From the given input files, or standard input if no file name is given, output every line containing non-standard ASCII characters.

rename

Allows to rename multiple files at once. A given PATTERN is applied to the names of all FILEs listed, in order to compute their new names. For example, to change the extension of all .txt files to .dat one could write:

rename 's/\.txt$/.dat/' *.txt

As writing correct regular expressions is often tricky, the utility requests explicit confirmation of file name changes before actually renaming any files.

binx's People

Contributors

nokyotsu avatar

Watchers

 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.