logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

shuf.1 (913B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2025-01-06
  5. .Dt SHUF 1
  6. .Os
  7. .Sh NAME
  8. .Nm shuf
  9. .Nd print contents shuffled
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl z
  13. .Op Fl n Ar num
  14. .Op Ar file...
  15. .Nm
  16. .Fl e
  17. .Op Fl z
  18. .Op Fl n Ar num
  19. .Op Ar string...
  20. .Sh DESCRIPTION
  21. .Nm
  22. reads each
  23. .Ar file
  24. in sequence and writes it on the standard output with some shuffling applied to each line.
  25. If no
  26. .Ar file
  27. is given or if
  28. .Ar file is
  29. .Qq - ,
  30. .Nm
  31. reads from the standard input.
  32. .Sh OPTIONS
  33. .Bl -tag -width _n_num
  34. .It Fl e
  35. Use each
  36. .Ar string
  37. as an input line.
  38. .It Fl n Ar num
  39. Output at most
  40. .Ar num
  41. lines.
  42. .It Fl z
  43. Use NULL as line delimiter, not newline.
  44. .El
  45. .Sh EXIT STATUS
  46. .Ex -std
  47. .Sh HISTORY
  48. An
  49. .Nm
  50. utility appeared in GNU coreutils 6.0.
  51. .Sh AUTHORS
  52. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me