logo

utils-std

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

strings.1 (1274B)


  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-09-09
  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 az
  13. .Op Fl t Ar format
  14. .Op Fl n Ar number
  15. .Op Ar file...
  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 or
  25. .Ar file
  26. is
  27. .Ql - ,
  28. .Nm
  29. reads from the standard input.
  30. .Sh OPTIONS
  31. .Bl -tag -width Ds
  32. .It Fl a
  33. Ignored, present for POSIX compatibility.
  34. Files are always scanned in their entirety and it is considered a flaw to do
  35. otherwise.
  36. .It Fl n Ar number
  37. Change the minimum string length (default: 4).
  38. .It Fl t Ar format
  39. Write the byte offset of each string found, the format is dependent on the
  40. format argument:
  41. .Bl -tag -width d
  42. .It d
  43. Decimal
  44. .It o
  45. Octal
  46. .It x
  47. Hexadecimal
  48. .El
  49. .It Fl z
  50. Separate each string with NULL instead of newline.
  51. .El
  52. .Sh EXIT STATUS
  53. .Ex -std
  54. .Sh SEE ALSO
  55. .Xr nm 1 ,
  56. .Xr isprint 3
  57. .Sh STANDARDS
  58. .Nm
  59. should be compliant with the
  60. IEEE Std 1003.1-2024 (“POSIX.1”)
  61. specification.
  62. The
  63. .Fl z
  64. option is an extension.
  65. .Sh AUTHORS
  66. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me