Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. #!/bin/bash
  2. echo -e "\e[31mDownloads from ftp file\e[31m"
  3. echo
  4. grep "OK DOWNLOAD" cdlinux.ftp.log |cut -d '"' -f2,4 |sort|uniq|cut -d '"' -f2|sed "s#.*/##"|sort|grep "cdlinux"|grep ".iso"| uniq -c
  5. echo
  6. echo -e "\e[31mDownloads from www file\e[31m"
  7. echo
  8.  
  9. grep "thttpd.log" cdlinux.www.log | cut -d' ' -f1,7| cut -d':' -f2 | grep "cdlinux" | sort -u | cut -d'/' -f6 | grep ".iso" | grep -v "Cache" | grep -v "getright" | grep -v "(compatible" | grep -v "sh" | sed 's/iso0/iso/'| grep "cdlinux"| sort | uniq -c
  10.  
  11. zrobic plik .sh (gedit) w folderze z plikami tekstowymi. Dac mu permission chmod +x <...>.sh. ./<...>.sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement