- #!/bin/bash
- yumFile="/var/log/yum.log"
- currentDate=`date "+%b %d"`
- grep "$currentDate" $yumFile > ./tempFile
- IFS="/"
- for line in `cat ./tempFile`
- do
- #echo $line | sed 's/://g' | awk {'print $3 " " $4 " " $5'} | sort
- #echo $line
- occurance=`echo $line | awk {'print $4'} | sed 's/://g'`
- #echo "$occurance"
- if [ "$occurance" == "Installed" ]
- then
- echo $occurance
- fi
- done
SHARE
TWEET
Untitled
a guest
Jan 23rd, 2012
29
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

