Code Sample |
cd ~dsl/ mkdir tmp cd tmp cp -rp /opt/package/* . du -a | awk '{print $2}' | sed "s/\.\///g" > package.lst [edit package.lst and remove any directories that aren't empty] tar -zcvf package.dsl -T package.lst mv package.dsl .. cd .. rm -rf tmp |
Code Sample |
cd ~dsl/ mkdir tmp cd tmp cp -rp /opt/package/* . tar -xzf user.tar.gz rm user.tar.gz du -a | awk '{print $2}' | sed "s/\.\///g" > package.lst [edit package.lst and remove any directories that aren't empty] tar -zcvf package.dsl -T package.lst mv package.dsl .. cd .. rm -rf tmp |