linux35

sed

sed -n '5’p test.txt
sed -n '1,5’p test.txt
sed -n '1, ′ p t e s t . t x t s e d − n ′ / r o o t / ′ p t e s t . t x t s e d − n ′ / 1 / ′ p t e s t . t x t s e d − n ′ i n 'p test.txt sed -n '/root/'p test.txt sed -n '/^1/'p test.txt sed -n 'in ptest.txtsedn/root/ptest.txtsedn/1/ptest.txtsednin'p test.txt
sed -n '/r…o/'p test.txt
sed -n 'oo*'p test.txt
sed -e '1’p -e '/111/'p -n test.txt
sed '1’d test.txt
sed '1,3’d test.txt
sed '/oot/'d test.txt
sed ‘1,2s/ot/to/g’ test.txt
sed ‘s#ot#to#g’ test.txt
sed ‘s/[0-9]//g’ test.txt
sed ‘s/[a-zA-Z]//g’ test.txt
sed -r ‘s/(rot)(.)(bash)/\3\2\1/’ test.txt
sed 's/^.
$/123&/’ test.txt
sed -i ‘s/ot/to/g’ test.txt

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值