Strings (Unix): Difference between revisions

Content deleted Content added
distinguish
not cat /usr/bin/strings | grep
Line 5:
Strings are recognized by looking for sequences of at least 4 (by default) printable characters terminating in a NUL character (that is, [[null-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 itits output 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 |year=2005 |___location=New York, NY |publisher=Apress|isbn=978-1-590-59376-9|page=413 |oclc=57450917 |url=http://www.apress.com/9781590593769}}</ref>
 
It is part of the [[GNU Binary Utilities]] (binutils), and has been ported to other operating systems including [[Microsoft Windows]].<ref>[[cygwin]]</ref>