Search Results

Search: Posts Made By: crazy_max
6,399
Posted By Aia
$ lv=log_vp $ lv+=1 $ echo $lv $ log_vp1 ...
$ lv=log_vp
$ lv+=1
$ echo $lv
$ log_vp1


$ lv=log_vp
$ echo ${lv}1
$ log_vp1
1,315
Posted By Khanaza
I=1 for t in `cat out.txt` echo "create...
I=1
for t in `cat out.txt`
echo "create directory data_$i as" '"$t"' :"
i=`expr $i + 1`
done

---------- Post updated at 07:03 PM ---------- Previous update was at 07:02 PM ----------

The...
3,596
Posted By Scrutinizer
Try: awk -F\| '{T[$1]+=$3; C[$1]++} END{for(i...
Try:
awk -F\| '{T[$1]+=$3; C[$1]++} END{for(i in T) printf "%s has run %s process and for time taken of value: %s\n", i, C[i], T[i]}' file
3,596
Posted By Scrutinizer
Try: awk -F\| '{T[$1]+=$3; C[$1]++} END{for(i...
Try:
awk -F\| '{T[$1]+=$3; C[$1]++} END{for(i in T) print i, C[i], T[i]}' file
If you count login and logout as well..
2,574
Posted By Don Cragun
It removes the temporary file created by this...
It removes the temporary file created by this script when the script exits.
2,574
Posted By Don Cragun
I would probably do something more like: ...
I would probably do something more like:
#!/usr/bin/ksh

echo "DB LIST:"
ps -ef | awk -F_ '/pmon/{print $3}' | sort | tee db_list$$
trap "rm db_list$$" EXIT

printf "Enter database name from...
2,897
Posted By Don Cragun
OK. So, this message is suggesting updates to...
OK. So, this message is suggesting updates to the code provided in the first message i this thread. The basic idea is to create a log file (Completed.YYYYMMDD) that contains a list of databases...
2,897
Posted By Don Cragun
Yes. I was assuming that you'd start your...
Yes. I was assuming that you'd start your backups a little after midnight and have all day to retry the backups if the log shows that one or more of the backups failed.

You could also make the...
2,897
Posted By Don Cragun
I was suggesting that you could change: ...
I was suggesting that you could change:
comp=$(date "+Completed.%Y%m%d")
in the first set of changes suggested in message sequence #8 in this thread to:
comp=${1:-$(date "+Completed.%Y%m%d")}
...
Showing results 1 to 9 of 9

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