我有一个相当大的文件(35Gb),我想就地过滤这个文件(即我没有足够的磁盘空间来存放另一个文件),特别是我想 grep 并忽略一些模式 - 有没有办法在不使用其他文件的情况下执行此操作?
假设我想过滤掉所有包含foo:例如...
foo:
grep large-files text-processing
该man页面并没有给我太大希望,但我希望它是一个未记录的(和/或特定于 GNU 的)功能。
man
shell io-redirection cut files
cut ×1
files ×1
grep ×1
io-redirection ×1
large-files ×1
shell ×1
text-processing ×1