Giter VIP home page Giter VIP logo

red-shuf's Introduction

red-shuf

SHUF(1)                     General Commands Manual                    SHUF(1)

NAME
     shuf โ€“ randomly permute input lines

SYNOPSIS
     shuf [-hv] [-n count] [-o outfile] [-rz] [file]
     shuf [-hv] -e [-n count] [-o outfile] [-rz] [args ...]
     shuf [-hv] -i lo-hi [-n count] [-o outfile] [-rz]

DESCRIPTION
     shuf is a utility that outputs a random permutation of its input lines.
     By default, shuf reads from stdin and outputs to stdout.

     The options are as follows:

     -e      Use a space-separated list of command-line args as input.

             Cannot be combined with -i.

     -h      Print usage information and exit.

     -i lo-hi
             Use the range of positive integers from lo to hi as input.

             Cannot be combined with -e.

     -n count
             Print at most count lines.

     -o outfile
             Write output to outfile instead of stdout.

     -r      Do not permute.  Instead, choose lines at random, with
             replacement.  When used without -n, shuf repeats indefinitely.

     -v      Print version information and exit.

     -z      Delineate lines with the NUL character instead of the newline
             character.

EXIT STATUS
     The shuf utility exits 0 on success, and >0 if an error occurs.

EXAMPLES
     Flip a coin ten times:

           shuf -e -n 10 -r Heads Tails

     Select five numbers from 10 to 20:

           shuf -i 10-20 -n 5

     Set a random desktop background image from the user's collection:

           ls ~/wallpaper | shuf -n 1 | feh --bg-fill

     Read a shuffled version of this manual page:

           shuf shuf.1 | mandoc -mdoc | less

AUTHORS
     shuf was written by Brian Callahan <[email protected]>.

CAVEATS
     This implementation of shuf intentionally omits all long options.

     The maximum range for lo-hi is INT_MAX-1.

Mac OS X 10.13                   July 13, 2017                  Mac OS X 10.13

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.