version 1.1, 2011/06/03 09:28:47 |
version 1.2, 2011/06/03 12:35:31 |
|
|
-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 |
;; |
;; |
|
|
|
|
-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 |
;; |
;; |
|
|
|
|
# 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 |