milis/bin/pkvt_olustur

19 lines
291 B
Plaintext
Raw Normal View History

2016-03-16 23:16:23 +01:00
#!/bin/bash
pvt_olustur(){
if [ ! -f paket.vt ];then
touch paket.vt
fi
2016-03-18 03:14:06 +01:00
if [ -f "paket.vt" ];then
mv "paket.vt" "paket.vt.eski"
fi
2016-03-16 23:16:23 +01:00
for paket in `ls`
do
paketad="`echo $paket|cut -d "#" -f1`"
shaek=`sha1sum $paket`
2016-03-18 03:14:06 +01:00
2016-03-17 17:58:21 +01:00
echo $paketad $shaek >> paket.vt
2016-03-16 23:16:23 +01:00
done
}
pvt_olustur