mirror of https://github.com/fengyuhetao/shell.git
9 lines
142 B
Bash
9 lines
142 B
Bash
|
!/bin/bash
|
||
|
|
||
|
#排除命令,使本来起作用的命令不起作用
|
||
|
|
||
|
sed -n '/heade/!p' test
|
||
|
|
||
|
#反转文本文件
|
||
|
sed -n '{1!G ; h; $p}' test
|