例如,我要将/home/samba/cpc-400/pkg/下所有名为xxxruntime.tar.bz2的包都解到/nfsroot/pmp-root/:
cd /nfsroot/pmp-root/
list=`ls /home/samba/cpc-400/pkg/*runtime.tar.bz2` ----- 注意,这里的` 是键盘最左上角,与~ 在一起的那个`
for pkg in ${list} ; do tar jxvf ${pkg}done