ճЕ(hu)ʹt_(d)ʽQʲôӵĆ}
t_(d)ʽ÷ڸ(g)Z_вͬʲôW(xu)(x)(jng)(yn)ԷoW(xu)
-I Process a binary file as if it did not contain matching data; this is equivalent to the --binary-files=without-match option.
--binary-files=TYPE
If the first few bytes of a file indicate that the file contains binary data, assume that the file is of type TYPE. By default, TYPE is binary, and
grep normally outputs either a one-line message saying that a binary file matches, or no message if there is no match. If TYPE is without-match, grep
assumes that a binary file does not match; this is equivalent to the -I option. If TYPE is text, grep processes a binary file as if it were text; this
is equivalent to the -a option. Warning: grep --binary-files=text might output binary garbage, which can have nasty side effects if the output is a
terminal and if the terminal driver interprets some of it as commands.
stdoutǽ(jng)^_̎stderr]н(jng)^_̎ݔstderrĔ(sh)(j)(hu)ֱӱl(f)͵K
1ճЕ(hu)ʹt_(d)ʽQʲôӵĆ}
2t_(d)ʽ÷ڸ(g)Zԡ_вͬʲôW(xu)(x)(jng)(yn)ԷoW(xu)
vimt(yng)ԓsed^עsQĕr(sh)/ָ@(g)sed(dng)ģʽкбܵĕr(sh)e
gӭR Chinaunix (http://72891.cn/) | Powered by Discuz! X3.2 |