[BACK]Return to oldzayavki.sh CVS log [TXT][DIR] Up to [local] / wpscripts / oldzayavki

Diff for /wpscripts/oldzayavki/oldzayavki.sh between version 1.1 and 1.2

version 1.1, 2011/06/03 09:28:47 version 1.2, 2011/06/03 12:35:31
Line 6 
Line 6 
 -w)  -w)
         # wideprint, list          # wideprint, list
         case ${2} in          case ${2} in
             V1)              maket)
                 echo "Listing old zayavki on V1"                  echo "Listing old zayavki on maket"
                 /usr/bin/find /V1/*/zayavki -type f -ctime +14d -exec ls -lh {} \;                  /usr/bin/find /mnt/maket/*/zayavki -type f -ctime +14d -exec ls -lh {} \;
                 ;;                  ;;
             V2)  
                 echo "Listing old zayavki on V2"  
                 /usr/bin/find /V2/*/zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             V3)  
                 echo "Listing old zayavki on V3"  
                 /usr/bin/find /V3/*/zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             V4)  
                 echo "Listing old zayavki on V4"  
                 /usr/bin/find /V4/*/zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             V5)  
                 echo "Listing old zayavki on V5"  
                 /usr/bin/find /V5/*/zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             *)              *)
                 echo "Usage: $0 <-w[r] | -e[r]> V{12345}"                  echo "Usage: $0 <-w[r] | -e[r]> maket"
                 echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"                  echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"
         esac          esac
         ;;          ;;
Line 36 
Line 20 
   
 -W)  -W)
     # wideprint, list      # wideprint, list
         echo "Listing old zayavki on V*"          echo "Listing old zayavki"
         /usr/bin/find /V[1-5]/*/zayavki -type f -ctime +14d -exec ls -lh {} \;          /usr/bin/find /mnt/maket/*/zayavki -type f -ctime +14d -exec ls -lh {} \;
         ;;          ;;
 -wr)  -wr)
         # wideprint, remove          # wideprint, remove
         case ${2} in          case ${2} in
             V1)              maket)
                 echo "Removing old zayavki on V1"                  echo "Removing old zayavki on maket"
                 /usr/bin/find /V1/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;                  /usr/bin/find /mnt/maket/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;
                 ;;                  ;;
             V2)  
                 echo "Removing old zayavki on V2"  
                 /usr/bin/find /V2/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             V3)  
                 echo "Removing old zayavki on V3"  
                 /usr/bin/find /V3/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             V4)  
                 echo "Removing old zayavki on V4"  
                 /usr/bin/find /V4/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             V5)  
                 echo "Removing old zayavki on V5"  
                 /usr/bin/find /V5/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             *)              *)
                 echo "Usage: $0 <-w[r] | -e[r]> V{12345}"                  echo "Usage: $0 <-w[r] | -e[r]> maket"
                 echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"                  echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"
         esac          esac
         ;;          ;;
   
 -Wr)  #-Wr)
         # wideprint, remove ALL  #       # wideprint, remove ALL
                 echo "Removing old zayavki on V*"  #               echo "Removing old zayavki on V*"
                 /usr/bin/find /V[1-5]/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  #               /usr/bin/find /V[1-5]/*/zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;
         ;;  #       ;;
 -WR)  #-WR)
     # wideprint, remove ALL  #    # wideprint, remove ALL
         echo "Removing old zayavki on V*"  #        echo "Removing old zayavki on V*"
         /usr/bin/find /V[1-5]/*/zayavki -type f -ctime +14d -print -exec rm {} \;  #        /usr/bin/find /V[1-5]/*/zayavki -type f -ctime +14d -print -exec rm {} \;
     ;;  #    ;;
   
 #  #
 # EPD  # EPD
 -e)  -e)
         # epd, list          # epd, list
         case ${2} in          case ${2} in
             V1)              maket)
                 echo "Listing old EPD zayavki on V1"                  echo "Listing old EPD zayavki on maket"
                 /usr/bin/find /V1/*/epd_zayavki -type f -ctime +14d -exec ls -lh {} \;                  /usr/bin/find /mnt/maket/*/epd_zayavki -type f -ctime +14d -exec ls -lh {} \;
                 ;;                  ;;
             V2)  
                 echo "Listing old EPD zayavki on V2"  
                 /usr/bin/find /V2/*/epd_zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             V3)  
                 echo "Listing old EPD zayavki on V3"  
                 /usr/bin/find /V3/*/epd_zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             V4)  
                 echo "Listing old EPD zayavki on V4"  
                 /usr/bin/find /V4/*/epd_zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             V5)  
                 echo "Listing old EPD zayavki on V5"  
                 /usr/bin/find /V5/*/epd_zayavki -type f -ctime +14d -exec ls -lh {} \;  
                 ;;  
             *)              *)
                 echo "Usage: $0 <-w[r] | -e[r]> V{12345}"                  echo "Usage: $0 <-w[r] | -e[r]> maket"
                 echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"                  echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"
         esac          esac
         ;;          ;;
Line 119 
Line 71 
   
         # epd, remove          # epd, remove
         case ${2} in          case ${2} in
             V1)              maket)
                 echo "Removing old EPD zayavki on V1"                  echo "Removing old EPD zayavki on maket"
                 /usr/bin/find /V1/*/epd_zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;                  /usr/bin/find /mnt/maket/*/epd_zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;
                 ;;                  ;;
             V2)  
                 echo "Removing old EPD zayavki on V2"  
                 /usr/bin/find /V2/*/epd_zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             V3)  
                 echo "Removing old EPD zayavki on V3"  
                 /usr/bin/find /V3/*/epd_zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             V4)  
                 echo "Removing old EPD zayavki on V4"  
                 /usr/bin/find /V4/*/epd_zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             V5)  
                 echo "Removing old EPD zayavki on V5"  
                 /usr/bin/find /V5/*/epd_zayavki -type f \! -name "*.rar" -ctime +14d -print -exec rm {} \;  
                 ;;  
             *)              *)
                 echo "Usage: $0 <-w[r] | -e[r]> V{12345}"                  echo "Usage: $0 <-w[r] | -e[r]> maket"
                 echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"                  echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"
         esac          esac
         ;;          ;;
   
 *)  *)
         echo "Usage: $0 <-w[r] | -e[r]> V{12345}"          echo "Usage: $0 <-w[r] | -e[r]> maket"
         echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"          echo "Be careful with -wr and -er keys. 'r' stands for \"remove\" here"
   
 esac  esac

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb