logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

strings.1 (1127B)


  1. .\" Collection of Unix tools, comparable to coreutils
  2. .\" Copyright 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2023-08-11
  5. .Dt STRINGS 1
  6. .Os
  7. .Sh NAME
  8. .Nm strings
  9. .Nd find printable strings
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl a
  13. .Op Fl t Ar format
  14. .Op Fl n Ar number
  15. .Op Ar files ...
  16. .Sh DESCRIPTION
  17. .Nm
  18. reads each
  19. .Ar file
  20. in sequence and writes printable strings longer than 4 or
  21. .Ar number .
  22. If no
  23. .Ar file
  24. is given,
  25. .Nm
  26. reads from the standard input.
  27. .Sh OPTIONS
  28. .Bl -tag -width Ds
  29. .It Fl a
  30. Ignored, present for POSIX compatibility.
  31. Files are always scanned in their entirety and it is considered a flaw to do
  32. otherwise.
  33. .It Fl n Ar number
  34. Change the minimum string length (default: 4).
  35. .It Fl t Ar format
  36. Write the byte offset of each string found, the format is dependend on the
  37. format argument:
  38. .Bl -tag -width d
  39. .It d
  40. Decimal
  41. .It o
  42. Octal
  43. .It x
  44. Hexadecimal
  45. .El
  46. .El
  47. .Sh EXIT STATUS
  48. .Ex -std
  49. .Sh SEE ALSO
  50. .Xr nm 1 ,
  51. .Xr isprint 3
  52. .Sh STANDARDS
  53. .Nm
  54. is compliant with the
  55. .St -p1003.1-2008
  56. specification.
  57. .Sh AUTHORS
  58. .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me