小编use*_*244的帖子

SED:显示前10行复杂表达式

如何使用sed查找单词linux的行?后来用linux这个词显示第一行10?EX:

cat file | sed -e '/linux/!d' -e '10!d' ### I can not display the first 10 lines of the word linux

cat file | sed '/linux/!d' | sed '10!d' ### It is well
Run Code Online (Sandbox Code Playgroud)

如何让它与一个sed一起工作?

cat file | sed -e '/linux/!d; ...?; 10!d'
Run Code Online (Sandbox Code Playgroud)

...? - 存储缓冲区linux?10后来切线?

有人向我解释?

linux bash sed

1
推荐指数
1
解决办法
136
查看次数

标签 统计

bash ×1

linux ×1

sed ×1