shell查找文件内的某个特定字符串,并显示同一行内容
a.txt里面内容为:jkhaldjwabkjklhakankjfevhoipjnlbkvdcihljknlNAME:xiaomingGender:manmmmmmmmd...
a.txt
里面内容为:
jkhaldjwabkjklhakankjfevhoipjnlbkvdcihljknl
NAME:xiaoming
Gender:man
mmmmmmmdjueeeeeeeeeeeahc
执行命令搜索 “NAME”,"Gender" 后输出:
NAME:xiaoming
Gender:man 展开
里面内容为:
jkhaldjwabkjklhakankjfevhoipjnlbkvdcihljknl
NAME:xiaoming
Gender:man
mmmmmmmdjueeeeeeeeeeeahc
执行命令搜索 “NAME”,"Gender" 后输出:
NAME:xiaoming
Gender:man 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询