pkvt_olustur 300 B

12345678910111213141516171819
  1. #!/bin/bash
  2. pvt_olustur(){
  3. if [ ! -f paket.vt ];then
  4. touch paket.vt
  5. fi
  6. if [ -f "paket.vt" ];then
  7. mv "paket.vt" "paket.vt.eski"
  8. fi
  9. for paket in `ls *.mps.lz`
  10. do
  11. paketad="`echo $paket|cut -d "#" -f1`"
  12. shaek=`sha1sum $paket`
  13. echo $paketad $shaek >> paket.vt
  14. done
  15. }
  16. pvt_olustur