Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
LICENSE | H A D | 03-May-2020 | 756 | 14 | 11 | |
README.md | H A D | 03-May-2020 | 1.7 KiB | 62 | 50 | |
configure | H A D | 03-May-2020 | 7.4 KiB | 374 | 330 | |
shuf.1 | H A D | 03-May-2020 | 2.6 KiB | 128 | 127 | |
shuf.c | H A D | 04-May-2020 | 7.6 KiB | 363 | 279 |
README.md
1shuf 2==== 3`shuf` is a utility that outputs a random permutation of its input lines. 4 5It is an ISC licensed reimplementation of the `shuf(1)` utility from GNU 6coreutils. 7 8Usage 9----- 10``` 11shuf [-hv] [-n count] [-o outfile] [-rz] [file] 12shuf [-hv] -e [-n count] [-o outfile] [-rz] [args ...] 13shuf [-hv] -i lo-hi [-n count] [-o outfile] [-rz] 14``` 15See `shuf.1` for more details. 16 17Dependencies 18------------ 19Because of its use of OpenBSD 20[`arc4random_uniform(3)`](https://man.openbsd.org/arc4random_uniform.3), 21[`getprogname(3)`](https://man.openbsd.org/getprogname.3), 22[`reallocarray(3)`](https://man.openbsd.org/reallocarray.3), and 23[`strtonum(3)`](https://man.openbsd.org/strtonum.3), 24non-\*BSD users may need to install 25[`libbsd`](https://libbsd.freedesktop.org/) to compile `shuf`. 26 27`configure` will figure this out for you. 28 29Compiling 30--------- 31``` 32./configure 33$ make 34$ sudo make install 35``` 36 37Reporting bugs 38-------------- 39Patches always welcome. 40 41`shuf` should not crash on any input. `shuf` has been extensively fuzzed with 42[`afl-fuzz`](http://lcamtuf.coredump.cx/afl/) but more testing is always 43better. Please file a bug report with crashing input if you find any. 44 45`shuf` should perfectly mimic `GNU shuf` behavior, with minimal exceptions. 46Two notable exceptions are better error messages and more strict getopt 47handling. If you discover any areas where `shuf` does not mimic `GNU shuf`, 48please file a bug report. 49 50License 51------- 52ISC license. See `LICENSE` for details. 53 54Download 55-------- 56Tarballs are available under the Releases tab. 57Please use the versioned tarball instead of the auto-generated tarballs. 58 59Source code 60----------- 61Source code is hosted on GitHub: https://github.com/ibara/shuf 62