#!將文件b.txt加入到a.txt
#方法一
#sed -ne '1r b.txt' -e '1N;p' a.txt >a.tmp
#mv a.tmp a.txt
#rm -f a.tmp
#方法二
$echo b.txt|sed 's//(.*/)//1/' b.txt a.txt>a.tmp
mv a.tmp a.txt
rm -f a.tmp
#!將*.c文件類型修改爲*.cpp
#for file in *.c;do
#mv $file ${file/.c/.cpp};
#rm -f $file.c
#done