Remove outdated file from db

This commit is contained in:
kcubeterm 2020-11-19 22:21:23 +05:30
parent 0e9bf06204
commit ab37b9b675
2 changed files with 0 additions and 29 deletions

21
db/list
View File

@ -1,21 +0,0 @@
#!/bin/bash
alpha="$@"
apt install "${alpha}*" -y
pp=`apt list "${alpha}*" | cut -d'/' -f1`
for i in $pp;
do
echo $i
dpkg -L $i >> $i.raw
echo " Raw file has created"
sed "s/^/$i: /" $i.raw >> $i.ok
apt remove $i -y
done
rm *.raw
mkdir ${alpha}for
mv *.ok ./${alpha}for/
#while ;
#do
# apt remove $i -y
#done

View File

@ -1,8 +0,0 @@
#!/bin/bash
list=`ls`
for i in $list;
do
#echo $i
real=`echo $i | cut -d'.' -f1`
mv $i $real
done