Search Results

Search: Posts Made By: azmanw2004
3,351
Posted By azmanw2004
Optimizing script
Could anybody help me to optimize the script below:

#!/bin/ksh
DATE1=`date '+%d%m%y'`
DATE2=`date '+%e/%m/%Y'`
DATE3=`date '+%H:%M:%S'`
DATE4=`date '+%Y%m%d'`
DATE5=`date '+%d'`
...
3,351
Posted By azmanw2004
But I need the sed as the whole script is doing...
But I need the sed as the whole script is doing calculation base on hour, minutes, second and ms.
3,351
Posted By azmanw2004
command utilizing high CPU
Can anybody please help me on how to optimize following command as it use up a lot of CPU :

tail -f $DIR3$DATE4.log |\
while read line
do echo $line | egrep "Processing...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 06:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy