腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(1535)
视频
沙龙
2
回答
grep
-
v
迁移
后
不再
排除
pattern
grep
、
cron
、
find
、
redhat
其他二进制文件的版本是
grep
(GNU
grep
) 2.20和find (GNU findutils) 4.5.11 |
grep
-
v
'error_log|logs|cache' 在移动之后,-
v
此外,如何恢复过滤
后<
浏览 23
提问于2019-08-20
得票数 0
回答已采纳
1
回答
如何复制或删除bash中的特定行并将其创建到新文件中
linux
、
bash
、
delete-row
我有一个可能有重复数据的auto_generated文件,这会导致我的解析器崩溃。如何逐行检查并根据bash上的字符删除不需要的行?例如: if '(1)' in line: elif '(2)' in line: elif '(3)' in line:
浏览 2
提问于2015-12-03
得票数 0
1
回答
grep
如何
排除
子目录
grep
我使用
grep
查找字符串,我想用
grep
-rl --exclude-dir=application/res --colour 'super'
排除
一个目录,但它也在application/res/目录下显示匹配当我使用
grep
-rl --exclude-dir=application --colour 'super'时,application路径下没有匹配的东西。 如何在使用
grep
时
排除
一个子目录。
gr
浏览 3
提问于2019-11-11
得票数 0
回答已采纳
7
回答
如何使用
grep
排除
一个单词?
regex
、
string
、
search
、
grep
我需要像这样的东西:
grep
^"unwanted_word"XXXXXXXX
浏览 258
提问于2010-12-27
得票数 586
回答已采纳
3
回答
组合查找命令条件
linux
、
unix
、
find
我正在尝试将两个find命令组合到
grep
模式匹配。type ffind -type d \( -path /dir -o -path /dir2 -o -path /dir3 \) -prune -o -print
grep
-rnw -e "my
pattern
"find '/logs' -mtime 0 -type f
浏览 0
提问于2017-01-05
得票数 0
回答已采纳
3
回答
如何使用这个"
grep
“命令将这种模式
grep
出来?
bash
、
grep
如何使用
grep
命令仅使用“apple_with_seeds”对模式进行
grep
?假设在种子和皮肤之后有随机字符。
浏览 3
提问于2011-07-06
得票数 1
回答已采纳
3
回答
如何从ls命令中
排除
目录
linux
、
unix
让我们假设我们有Test 当我们执行ls时,它会显示所有三个目录,但我需要
排除
test1。所以我应该只得到Test 提前感谢
浏览 0
提问于2015-08-14
得票数 15
回答已采纳
3
回答
grep
用于
排除
模式和
排除
前面的两行
bash
、
grep
我有一个文件,希望使用
grep
排除
模式。但我也想删除前两行的每一场比赛(这是不包括)。我该怎么做?225 +
pattern
:AA[CT]NNN[AT]CN . aacacctcc 176 184 +
pattern
:AA[CT]NNN[AT]CN . aatcctaca # With
gre
浏览 1
提问于2018-08-08
得票数 0
回答已采纳
2
回答
要从文件中删除的模式列表
command-line
、
text-processing
为了进一步说明这一点,我们有两个文件内容:hello2_hello1_worldhello12_hello11_world1file2hello2_hello1_worldmy1_hello1word1_world1file Thismy
浏览 0
提问于2017-09-20
得票数 0
1
回答
仅在非源代码的纯文本文件中搜索。
grep
、
text
我使用以下命令递归地在当前目录下的纯文本文件中搜索字符串ELF:但是它也在二进制文件(例如zip文件、PDF文件)和代码文件(如HTML和.js )中进行搜索。
浏览 0
提问于2015-03-15
得票数 2
回答已采纳
2
回答
搜索模式并删除所有行
linux
、
shell
、
unix
我尝试过使用
grep
-
v
'RC USSDString' IN-201609201800.txt | more,但是这个命令只删除搜索到的模式
grep
-
v
'RC USSDString' IN-201609201800
浏览 2
提问于2016-09-21
得票数 0
回答已采纳
4
回答
Grep
排除
文件夹并使用linux进行搜索
linux
、
grep
grep
命令/var/递归地/var/www/exclude
浏览 2
提问于2012-05-19
得票数 5
2
回答
在powershell中使用select-string
排除
搜索模式
powershell
是否可以像
grep
一样
排除
搜索模式。例如:logerror.txtERR
浏览 3
提问于2016-08-24
得票数 18
回答已采纳
1
回答
不和
grep
合作?
grep
、
regular-expression
、
history-expansion
您可以使用-
v
从文件中
排除
一个单词,但我想知道为什么regex模式?!不适用于
grep
/egrep。 我在atom编辑器中的一个文件中搜索一个模式来
排除
一个单词,并找到了这链接。?!
pattern
搜索历史记录时得到-bash: !xxx: event not found。在那之后,我尝试了一些像echo "no" |
grep
"^(?!yes).*"这样的东西,但是
grep
不知怎么不承认?!模式--为什么会这样呢?
浏览 0
提问于2018-05-11
得票数 0
1
回答
告诉记者除了一个特定的设施外,其他人都要展示
systemd-journald
、
dhcpd
local7 但
后
一种语法是不正确的。有办法做到这一点吗?或者,在!dhcpd上过滤什么的?
浏览 0
提问于2023-04-22
得票数 2
5
回答
如何使用
grep
从find命令的输出中忽略/
排除
文件?
bash
、
grep
、
find
我想在最后使用
grep
命令来忽略某些文件。 我的未完成命令是: find .type f \( -name "*.txt" -or -name "*.html" -or -name "*.css" -or -name "*.js" -or -name "*.yml" \) |
grep
假设我想忽略两个文件: cards.js和radios- and -checkboxes.css 我如何使用
grep
命令实现它?我知道有一些不使用
gre
浏览 81
提问于2019-04-15
得票数 0
回答已采纳
1
回答
无法在bash脚本中
grep
命令结果
linux
、
bash
、
shell
、
grep
$(ps aux |
grep
'my_
pattern
' |
grep
-
v
'color')] echo "Success"fi 使用此脚本,我希望
grep
进程,并反转
grep
以
排除
颜色进程。如果进程正在运行,该命令(ps aux |
grep
'my_
patte
浏览 2
提问于2017-10-09
得票数 0
4
回答
如何从git ls-文件中
排除
文件?
git
、
bash
我尝试使用--
排除
标志运行ls-文件,但
排除
的文件仍然显示在输出中。
浏览 2
提问于2016-04-20
得票数 32
回答已采纳
3
回答
如何在日志中反转后面跟着一些xml主体的
grep
匹配
regex
、
bash
、
awk
、
sed
、
grep
我想从我的日志文件中
grep
(反向
grep
/反向
grep
)一些xml数据。
grep
-
v
可以工作,但是我的日志中有一些巨大的xml主体,它每5分钟打印一次,我希望
grep
整个xml主体出来,因为它主要是噪声,使我更难解析日志文件。我想要
grep
出来的行看起来像这样。date time
pattern
<smaller tag1> &l
浏览 2
提问于2014-04-30
得票数 1
3
回答
杀死除一个python脚本和
grep
进程之外的所有python脚本。
linux
、
bash
、
python-2.7
、
shell
、
centos
我如何在bash中运行命令来杀死所有python脚本,除了名为test.py的脚本和
grep
的pid本身,以防我们使用类似于ps -ef |
grep
的东西 我想我可以使用类似pgrep python的东西来忽略
grep
进程,但是如何也
排除
test.py脚本呢?我知道有一个选项可以做
grep
-
v
,有做pgrep -
v
的选项吗?澄清:除了
grep
过程-意味着当我们做,例如,ps -ef |
grep
test1.py,我们也得到了
浏览 3
提问于2016-09-17
得票数 1
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
腾讯会议
活动推荐
运营活动
广告
关闭
领券