注意:mac电脑 命令后需要加\ 换行
linux系统不需要
1、sed -n '2,3c\
微信小程序好测试吗’ aa.txt
2、打印出5-7行文本内容
sed -n ‘5,7p’ aa.txt
3、搜索chuying并输出(-n 只输出匹配的行)
sed -n /chuying/p aa.txt
注意:mac电脑 命令后需要加\ 换行
linux系统不需要
1、sed -n '2,3c\
微信小程序好测试吗’ aa.txt
2、打印出5-7行文本内容
sed -n ‘5,7p’ aa.txt
3、搜索chuying并输出(-n 只输出匹配的行)
sed -n /chuying/p aa.txt
3385
4241
425

被折叠的 条评论
为什么被折叠?