Strings (Unix): Difference between revisions

Content deleted Content added
Vadmium (talk | contribs)
Pemu (talk | contribs)
No edit summary
Line 6:
Strings are recognized by looking for sequences of at least 4 (by default) printable characters terminating in a NUL character (that is, [[C string]]s). Some implementations provide options for determining what is recognized as a printable character, which is useful for finding non-ASCII and wide character text.
 
Common usage includes piping it to <tt>[[grep]]</tt> and <tt>[[GNUFold Core Utilities(Unix)|fold]]</tt> or redirecting the output to a [[Computer file|file]].<ref>{{cite book|last=Kiddle|first=Oliver |coauthors=Jerry Peek and Peter Stephenson|title=From Bash to Z Shell|origyear=2004|publisher=Apress|isbn=1590593766|page=413}}</ref>
 
It is part of the [[GNU Binary Utilities]] (binutils), and has been ported to other operating systems including [[Microsoft Windows]].<ref>[[cygwin]]</ref>