SHELL Tasks

Prompt
ALT Prompt in green with full path
ST /home/amb #

export PS1='\[\e]0;$(pwd)\a\]\[\e[32m\]ST $(pwd) #\[\e[0m\] '








xx
Profile
Alias
### Alias ###
alias h="history"
alias hg="history | grep "
ALT-HOME in .bash_profile
ALTHOME=/cygdrive/d/amb_cyg

if [ -d $ALTHOME ]
  then
        echo "Switching HOME from $HOME to $ALTHOME on USB"
        export HOME=$ALTHOME
        cd
fi






cygwin
Terminal layout (light gray background)
$HOME/.minttyrc
BoldAsFont=-1
FontHeight=11

BackgroundColour=204,204,204
ForegroundColour=0,0,0
CursorColour=0,0,0


CursorType=block
Columns=120
Scrollbar=left
Transparency=low
OpaqueWhenFocused=yes

Paste in vim
"+p
Copy in vim
"+y




xx
xx










xx


 Please note:
- No guarantee that it is working or not crashing the system
- Almost everything is optimized for better maintenance, not performing!!

* Check for diskspace in oracle environment (from IN)
* Date

##########################################################################################

DATE:
date -d -1day +"%s""        Date of yesterday in seconds since 1.1.70
date -d "20020102 00:10:20" +"%s"        2nd Feb 2002, 00.10:20 in seconds since 1.1.70

##########################################################################################

Check for diskspace in oracle environment (from IN)


echo `hostname`
echo "=============="
echo
echo
echo "Size/kB......Path"

for i in `ls -l /u*/ora*|grep "/u"|grep ora|cut -d ":" -f 1|grep oracle`
do
du -sk $i
done

for i in ` ls -l /u*/ora*/*|grep "/u"|grep data|cut -d ":" -f 1 `
do
du -sk $i
done

for i in ` ls -l /u*/ora*/*|grep "/u"|grep ar|cut -d ":" -f 1 `
do
du -sk $i
done