sed 的使用
sed 's/aa/bb/g' ee.sh 将ee.sh里边的aa全部替换为bb
sed 's/\/aa/\#bb/g' ee.sh 将ee.sh里边的/aa全部替换为#bb
sed 's/\/aa/\#bb/g w wo.sh' ee.sh 将ee.sh里边的/aa全部替换为#bb让后保 存到wo.sh中
//使用P(rint)显示行
sed -n '2p' ee.sh 只打印ee.sh文件第二行
//使用打印范围
sed -n '2,5p' ee.sh 打印ee.sh文件2到5行,用逗号做分割号
It may have the strength, but the effort, struggle, worthy of the heart.