logo

utils-std

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

echo.1 (999B)


  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 2024-03-18
  5. .Dt ECHO 1
  6. .Os
  7. .Sh NAME
  8. .Nm echo
  9. .Nd write arguments to standard output
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl n
  13. .Op Ar string...
  14. .Sh DESCRIPTION
  15. .Nm
  16. buffers all
  17. .Ar string
  18. together with a final newline and then does a single write to standard output.
  19. If there is no
  20. .Ar string ,
  21. only the newline is written.
  22. .Pp
  23. The
  24. .Fl -
  25. operand, which generally terminates option processing, is treated as part of
  26. .Ar string .
  27. .Sh OPTIONS
  28. .Bl -tag -width Ds
  29. .It Fl n
  30. Do not print the trailing newline character.
  31. .El
  32. .Sh EXIT STATUS
  33. .Ex -std
  34. .Sh SEE ALSO
  35. .Xr printf 1
  36. .Sh STANDARDS
  37. Not XSI-compliant as
  38. .Fl n
  39. is parsed as an option and backslash operators aren't supported.
  40. Should be compliant with the rest of the
  41. IEEE Std 1003.1-2024 (“POSIX.1”)
  42. specification.
  43. .Sh AUTHORS
  44. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me