排除命令

5年以前  |  阅读数:471 次  |  编程语言:Shell 
!/bin/bash

#排除命令,使本来起作用的命令不起作用

sed -n '/heade/!p' test

#反转文本文件
sed -n '{1!G ; h; $p}' test

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8