daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cd /var/lib/dpkg/info;
  2. filelist=`cat $1.list`;
  3. for i in $filelist;
  4.     do if [ -f $i ];
  5.         then echo $i >> ~/tmplist.txt;
  6.     fi;
  7. done;
  8. filelist2=`cat ~/tmplist.txt`;
  9. tar -czvf ~/$1.tar.gz $filelist2;
  10. rm ~/tmplist.txt;
RAW Paste Data
Top