Strings (Unix): Difference between revisions

Content deleted Content added
Pemu (talk | contribs)
No edit summary
Vadmium (talk | contribs)
Line 4:
It can be used on object files, and [[core dump]]s.
 
Strings are recognized by looking for sequences of at least 4 (by default) printable characters terminating in a NUL character (that is, [[Cnull-terminated 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>[[Fold (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>