logo

utils-std

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

base64.1 (997B)


  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 2023-11-01
  5. .Dt BASE64 1
  6. .Os
  7. .Sh NAME
  8. .Nm base64
  9. .Nd encode/decode base64 data to standard output
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl d
  13. .Op Fl w Ar wrap
  14. .Op Ar file...
  15. .Sh DESCRIPTION
  16. .Nm
  17. reads
  18. .Ar file ,
  19. encodes or decodes in base64 and writes the results into standard output.
  20. If no
  21. .Ar file
  22. is given,
  23. .Nm
  24. reads from the standard input.
  25. .Sh OPTIONS
  26. .Bl -tag -width _w_wrap
  27. .It Fl d
  28. Decode input instead of encoding it.
  29. .It Fl w Ar wrap
  30. Write at most
  31. .Ar wrap
  32. characters per line instead of the default of 76 characters.
  33. If
  34. .Ar wrap
  35. is 0, then no newlines are written.
  36. .El
  37. .Sh EXIT STATUS
  38. .Ex -std
  39. .Sh STANDARDS
  40. .Nm
  41. follows base64 as defined in RFC3548 and RFC4648.
  42. .Sh HISTORY
  43. A
  44. .Nm
  45. utility first appeared in GNU Coreutils 6.0 (2006-08-15),
  46. .Fx 4.3 ,
  47. .Nx 9
  48. .Sh AUTHORS
  49. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me