Adds an option to the strings program to specify a separator between the emitted pieces of text.

* strings.c: Add -s/--output-separator option to specify custom
	separator string.
	* NEWS: Mention the new feature.
	* doc/binutils.text (strings): Document the new command line
	option.
This commit is contained in:
Erik Ackermann 2015-09-10 09:29:13 +01:00 committed by Nick Clifton
parent 3f263e4b5a
commit 55edd97b4b
4 changed files with 37 additions and 2 deletions

View file

@ -2790,6 +2790,7 @@ strings [@option{-afovV}] [@option{-}@var{min-len}]
[@option{-}] [@option{--all}] [@option{--print-file-name}]
[@option{-T} @var{bfdname}] [@option{--target=}@var{bfdname}]
[@option{-w}] [@option{--include-all-whitespace}]
[@option{-s}] [@option{--output-separator}@var{sep_string}]
[@option{--help}] [@option{--version}] @var{file}@dots{}
@c man end
@end smallexample
@ -2894,6 +2895,13 @@ By default tab and space characters are included in the strings that
are displayed, but other whitespace characters, such a newlines and
carriage returns, are not. The @option{-w} option changes this so
that all whitespace characters are considered to be part of a string.
@item -s
@itemx --output-separator
By default, output strings are delimited by a new-line. This option
allows you to supply any string to be used as the output record
separator. Useful with --include-all-whitespace where strings
may contain new-lines internally.
@end table
@c man end