[from now] 2013/03/23 19:52:48

diff --git a/RHEL/CONCURRENT_BACKUP/2003-12.tgz b/RHEL/CONCURRENT_BACKUP/2003-12.tgz
deleted file mode 100644
index b591ff9..0000000
Binary files a/RHEL/CONCURRENT_BACKUP/2003-12.tgz and /dev/null differ
diff --git a/RHEL/CONCURRENT_BACKUP/2004-01.tgz b/RHEL/CONCURRENT_BACKUP/2004-01.tgz
deleted file mode 100644
index 165417d..0000000
Binary files a/RHEL/CONCURRENT_BACKUP/2004-01.tgz and /dev/null differ
diff --git a/RHEL/CONCURRENT_BACKUP/2010-11.tgz b/RHEL/CONCURRENT_BACKUP/2010-11.tgz
deleted file mode 100644
index 2a1392a..0000000
Binary files a/RHEL/CONCURRENT_BACKUP/2010-11.tgz and /dev/null differ
diff --git a/RHEL/CONCURRENT_BACKUP/2012-02.tgz b/RHEL/CONCURRENT_BACKUP/2012-02.tgz
deleted file mode 100644
index 81a2424..0000000
Binary files a/RHEL/CONCURRENT_BACKUP/2012-02.tgz and /dev/null differ
diff --git a/RHEL/CONCURRENT_BACKUP/2013-02/test b/RHEL/CONCURRENT_BACKUP/2013-02/test
deleted file mode 100644
index e69de29..0000000
diff --git a/RHEL/concurrent-log-move.sh b/RHEL/concurrent-log-move.sh
index 45e5c3a..c55e519 100755
--- a/RHEL/concurrent-log-move.sh
+++ b/RHEL/concurrent-log-move.sh
@@ -1,19 +1,39 @@
 #!/bin/sh
+set -e

-# Days that log left
-LEFT_DAYS=30
+CMDNAME=$(basename $0)
+
+# usage
+usage() {
+    cat <<-EOT
+    Usage: ${CMDNAME} [LEFT_DAYS]
+       ex) ${CMDNAME}
+        or ${CMDNAME} 400
+EOT
+}
+
+if [ $# -gt 1 ]; then
+    usage
+    exit 1
+fi
+
+# Days that log left (default is 400 days)
+LEFT_DAYS=${1:-400}
+echo "Move concurrent log more than ${LEFT_DAYS} days old"

 # Concurrent log directory
-CONC_LOG_DIR=/ebs/prod/db/inst/apps/hr1_jinjtestdb01/logs/appl/conc/log
+#CONC_LOG_DIR=/ebs/prod/db/inst/apps/hr1_jinjtestdb01/logs/appl/conc/log
+CONC_LOG_DIR=${HOME}/bin/scripts/RHEL

 # Concurrent log moved directory
 BACK_DIR=${CONC_LOG_DIR}/CONCURRENT_BACKUP
 [[ ! -d ${BACK_DIR} ]] && mkdir -p ${BACK_DIR}

+
 # move old log
 cd ${CONC_LOG_DIR}
-#find . -maxdepth 1 -type f -mtime +${LEFT_DAYS} -print0 | xargs -0 -I{} mv -v {} ${BACK_DIR}
-find . -maxdepth 1 -type f -mtime +${LEFT_DAYS} -print0 | xargs -0 -I{} cp -pv {} ${BACK_DIR}
+find . -maxdepth 1 -type f -mtime +${LEFT_DAYS} -print0 | xargs -0 -I{} mv -v {} ${BACK_DIR}
+#find . -maxdepth 1 -type f -mtime +${LEFT_DAYS} -print0 | xargs -0 -I{} cp -pv {} ${BACK_DIR}

 # divide Concurrent log at file timestamp
 cd ${BACK_DIR}
diff --git a/RHEL/test b/RHEL/test
deleted file mode 100644
index e69de29..0000000
diff --git a/RHEL/test1 b/RHEL/test1
deleted file mode 100644
index e69de29..0000000
diff --git a/RHEL/test2 b/RHEL/test2
deleted file mode 100644
index e69de29..0000000
diff --git a/RHEL/test3 b/RHEL/test3
deleted file mode 100644
index e69de29..0000000
diff --git a/RHEL/test4 b/RHEL/test4
deleted file mode 100644
index e69de29..0000000
diff --git a/RHEL/tmp/concurrent-log-move.sh b/RHEL/tmp/concurrent-log-move.sh
deleted file mode 100644
index 3ffbd7e..0000000
--- a/RHEL/tmp/concurrent-log-move.sh
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-# Concurrent log directory
-CONC_LOG_DIR=$HOME/bin/scripts/RHEL
-# Time that log left
-LEFT_TIME=400
-
-# move old log
-cd ${CONC_LOG_DIR}
-find . -type f -mtime +${LEFT_TIME}
-
-
diff --git a/RHEL/tmp/test b/RHEL/tmp/test
deleted file mode 100644
index e69de29..0000000