How i find all lines not containing this word: "_archive" ???
我如何找到所有不包含这个词的行:“_ archive”???
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 1
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 2
XXXXXXXXXXXXXXXXXXXXXXXXX teste 1
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 3
XXXXXXXXXXXXXXXXXXXXXXXXX teste 2
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 4
XXXXXXXXXXXXXXXXXXXXXXXXX teste 3
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 5
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 6
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 7
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 8
XXXXXXXXXXXXXXXXXXXXXXXXX teste 4
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 9
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 10
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 11
XXXXXXXXXXXXXXXXXXXXXXXX teste 5
XXXXXXXXXXXXXXXXXXXXXXXXX _archive 1 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 2 XXXXXXXXXXXXXXXXXXXXXXXXX泰斯特1 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 3 XXXXXXXXXXXXXXXXXXXXXXXXX泰斯特2 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 4 XXXXXXXXXXXXXXXXXXXXXXXXX泰斯特3 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 5 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 6 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 7 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 8 XXXXXXXXXXXXXXXXXXXXXXXXX泰斯特4 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 9 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 10 XXXXXXXXXXXXXXXXXXXXXXXXX _archive 11 XXXXXXXXXXXXXXXXXXXXXXXX泰斯特5
Thanks
谢谢
2 个解决方案
#1
3
Use grep -v
:
使用grep -v:
grep -v _archive inputfile.txt
This command prints out each line in inputfile.txt
that does not contain _archive
.
此命令打印出inputfile.txt中不包含_archive的每一行。
#2
0
suppose your file is under "file.txt"
假设您的文件位于“file.txt”下
the following unix command would do it
以下unix命令可以执行此操作
grep -v _archive file.txt
#1
3
Use grep -v
:
使用grep -v:
grep -v _archive inputfile.txt
This command prints out each line in inputfile.txt
that does not contain _archive
.
此命令打印出inputfile.txt中不包含_archive的每一行。
#2
0
suppose your file is under "file.txt"
假设您的文件位于“file.txt”下
the following unix command would do it
以下unix命令可以执行此操作
grep -v _archive file.txt