你知道你们是否遇到过,文件里有些^@^@^@符号,linux 把文件识别成二进制了,导致 grep 全部失效
1
julyclyde 2022-05-23 12:56:47 +08:00 1
|
2
polythene 2022-05-23 13:24:47 +08:00
随手 grep --text
|
4
hatebugs OP @julyclyde Other common causes of NULs in a text file are: 1. a process truncated the file while another process was writing it, so the second process's writes suddenly went past the current EOF, so the gap became sparsely allocated all-zero space. 2. The file was modified shortly before a system crash and the filesystem recovered the file's size without recovering all the data
|