显示此命令的所有输出并保存输出到桌面上的任意文件中
保存正确输出到/mnt/find.out.1中,屏蔽错误输出
建立/mnt/find.all文件,并且保存所有输出到此文件中
[student@localhost /]$ find /etd -name passwd &>> /mnt/find.all
再次保存所有输出到/mnt/find.all中,并且保持源文件内容
错误数出到/mnt/find.err中
保存正确数出到/mnt/find.out
显示所有正确输出,屏蔽错误输出
找到/usr/share/mime/packages/freedesktop.org.xml
中包含ich的行,并保存这些行到/root/lines中
[student@lacalhost ~] sed -i 's/ ^\ */vim/g' /root/lines
用vim替换掉/root/lines中的空格,但要保持文件中原有的内容