Wednesday, July 3, 2013

Friday, March 8, 2013

Here I try to delete “.gz” files that are older than ‘n’ days. However I make sure at least one file retain in the system after delete else no delete .#!/bin/sh# Author : SanjeewaF(21-02-2013)#This file is to delete gzip files afterX no of days. #Please only run them needed . export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesCFG_FILE_PATH=/share/backups/reports/FILE_TYPE=*.gz

Press enter to keep the current choice[*], or type selection number: 2That’s it your default java now set to target version.

5. Same time you can change $JAVA_HOME and path variable to reflect changes . I prefer global change so I edit /etc/profile and append export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_24 export PATH=$PATH:$JAVA_HOME/bin