Code Monkey home page Code Monkey logo

unseq's Introduction

UNSEQ - revert a sequence (of numbers) to rules

A simple Unix tool to describe a list of numbers (typically, if it is too long for visual inspection), like the output of one or more seq commands, by a set of rules, similar to what the seq commands would take to regenerate the same list.

Documentation to be completed (as of November 2023).

The option SEP="" generates a compact output format (without spaces).

Usage

The make tests command yields an illustrative list of examples for usage.

Not-number lines are ignored, but printed out.

Known limits

Works on a list of numbers given line by line. Use other tools to cut your lines, if you have a multi-number lines type of input.

Install

This tool can by installed standalone in any directory, which is part of the $PATH variable, e.g. ~/.local/bin/, ~/bin, /usr/local/bin, /usr/bin, โ€ฆ. A cleaner, more standard way should be provided in the future.

Prerequisite

Only prerequisite is the installation of awk.

Design

As sequences of numbers can be generated

Contribute

I would be glad to hear from you about missing cases. Create a new issue on github for that, including providing patches (pull requests).

unseq's People

Contributors

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