linux中sed命令同时传入两个参数

 

001、

[root@PC1 test]# ls
a.txt
[root@PC1 test]# cat a.txt
h
d
w
q
g
d
t
[root@PC1 test]# sed -n "$a,$b"p a.txt       ## 同时传入两个变量参数
d
w
q

 

posted @ 2022-09-26 12:11  小鲨鱼2018  阅读(207)  评论(0编辑  收藏  举报