grep - Unix: Egrep -a in solaris -
i need equivalent of "egrep -a " option in solaris.
currently option works fine in red hat linux, wanted migrate code in server in solaris flavour.
so need know equivalent of "egrep -a " in solaris.
thanks.
the feature requested (see manual) documented
-a--textprocess binary file if text; equivalent
--binary-files=textoption.
--binary-files=typeif file's allocation metadata, or if data read before line selected output, indicate file contains binary data, assume file of type type. default, type ‘binary’, , grep outputs either one-line message saying binary file matches, or no message if there no match. when matching binary data, grep may treat non-text bytes line terminators.
if type ‘without-match’, grep assumes binary file not match; equivalent -i option.
if type ‘text’, grep processes binary file if text; equivalent -a option.
warning: ‘--binary-files=text’ might output binary garbage, can have nasty side effects if output terminal , if terminal driver interprets of commands.
solaris grep (see manual) has no such feature. third-party packages available, e.g., cswggrep opencsw.
Comments
Post a Comment