https://iphwiki.net/index.php?title=Linux_-_grep_-_Binary_file_(standard_input)_matches&feed=atom&action=history
Linux - grep - Binary file (standard input) matches - История изменений
2024-03-28T08:23:33Z
История изменений этой страницы в вики
MediaWiki 1.35.0
https://iphwiki.net/index.php?title=Linux_-_grep_-_Binary_file_(standard_input)_matches&diff=12658&oldid=prev
Admin iph в 08:47, 15 декабря 2022
2022-12-15T08:47:54Z
<p></p>
<table class="diff diff-contentalign-left diff-editfont-monospace" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="ru">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Предыдущая</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Версия 08:47, 15 декабря 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Строка 1:</td>
<td colspan="2" class="diff-lineno">Строка 1:</td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">[[Файл:B_1.gif |link=https://bit.ly/3tbFsd6| Доступная цена]]</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Linux - grep - Binary file (standard input) matches ===</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>=== Linux - grep - Binary file (standard input) matches ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>
Admin iph
https://iphwiki.net/index.php?title=Linux_-_grep_-_Binary_file_(standard_input)_matches&diff=12657&oldid=prev
Admin iph: Новая страница: «=== Linux - grep - Binary file (standard input) matches === При использовании grep без параметров - возможна ошибка:...»
2022-12-15T08:46:32Z
<p>Новая страница: «=== Linux - grep - Binary file (standard input) matches === При использовании grep без параметров - возможна ошибка:...»</p>
<p><b>Новая страница</b></p><div>=== Linux - grep - Binary file (standard input) matches ===<br />
<br />
При использовании grep без параметров - возможна ошибка:<br />
Binary file (standard input) matches<br />
<br />
Решается добавлением ключа -a:<br />
-a, --text<br />
Process a binary file as if it were text; this is equivalent to the --binary-files=text option.<br />
Пример:<br />
# egrep -a text /var/log/messages<br />
<br />
Ошибка означает, что grep принимает какие-то символы за бинарные данные. Чтобы все двоичные данные принимались за текстовые - нужно добавить опцию '''-a'''</div>
Admin iph