sed -n '/\bstart)/a \\t#check that portmap or rpcbind is up \n\t/etc/init.d/portmap status \n\t[ $? -ne 0 ] && /etc/init.d/portmap start' /etc/init.d/nfs
sed 用 \b 标示边界
grep -w
转载于:https://blog.51cto.com/bashrc/1386198
sed -n '/\bstart)/a \\t#check that portmap or rpcbind is up \n\t/etc/init.d/portmap status \n\t[ $? -ne 0 ] && /etc/init.d/portmap start' /etc/init.d/nfs
sed 用 \b 标示边界
grep -w
转载于:https://blog.51cto.com/bashrc/1386198