10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, i have a large file like this:
Contig1 1 5
Contig1 2 4
Contig1 3 3
Contig1 4 5
Contig1 5 3
Contig1 6 4
Contig2 1 3
Contig2 2 7
Contig2 3 2
Contig2 4 9
Contig2 5 10
Contig2 6 3
Contig2 7 7
Contig2 8 2
Contig2 9 7
Contig2 10 5
contig1 2 4
contig1 3 3
contig1 4 5 (3 Replies)
Discussion started by: the_simpsons
3 Replies
2. Shell Programming and Scripting
pcmpath query device |awk 'BEGIN{print "TYPE\tDEVICE NAME\tSERIAL\tSIZE\tHOSTNAME"}
/DEVICE/ {
disk=$5
printf "%s\t", $7
printf "%s\t", disk
getline; printf "%s\t", substr($2, length($2)-3)
("bootinfo -s " disk) | getline; printf... (3 Replies)
Discussion started by: Daniel Gate
3 Replies
3. Shell Programming and Scripting
Hi
I have this date 11:30:02-31.11.12
How to calculate date between this date and now?
I like it printed like this:
31D 2H 1M
if possible. (6 Replies)
Discussion started by: Jotne
6 Replies
4. Shell Programming and Scripting
for i in `lsvg`
do
echo "VG Name:" $i
echo "Total VG Size:"
lsvg $i |grep "TOTAL PPs:" |awk '{print $7}' | cut -c2-
echo "Free VG Size:"
lsvg $i |grep "FREE PPs:" | awk '{print $7}' | cut -c2-
done
The PP Sizes are in MB. I like to have the sizes in GB.
Also, I like to have the... (14 Replies)
Discussion started by: Daniel Gate
14 Replies
5. Shell Programming and Scripting
Dear users,
I need your support, I have a file like this:
272134.548 6680572.715
272134.545 6680572.711
272134.546 6680572.713
272134.548 6680572.706
272134.545 6680572.721
272134.543 6680572.710
272134.544 6680572.715
272134.543 6680572.705
272134.540 6680572.720
272134.544... (10 Replies)
Discussion started by: Gery
10 Replies
6. Shell Programming and Scripting
Could someone till me what this calculation really means
let foo=`date "+(1%H-106)*60+1%M-100"` bar=foo+1440 (4 Replies)
Discussion started by: freddie999
4 Replies
7. Shell Programming and Scripting
Hi,
I want an script that calculate total memory consume by all Oracle Process
6689 oraprod 16 0 1163m 155m 150m S 0 2.0 0:01.95 oracle
7046 oraprod 16 0 1161m 18m 14m S 0 0.2 0:00.02 oracle
7392 oraprod 16 0 1165m 39m 33m S 0 0.5 0:00.07 oracle
7394 oraprod 16 0 1161m 22m 18m S... (1 Reply)
Discussion started by: telnor
1 Replies
8. Shell Programming and Scripting
Hi All
I want to make summery for
Date=245Duration=545 ... (1 Reply)
Discussion started by: nalakaatslt
1 Replies
9. Shell Programming and Scripting
Hi, I am in ksh88
I am trying to get the result of the calculation using 3 variables:
TOTAL
CAPACITY
and get the following error:
$DB_CAPACITY=(( $DB_SIZE * 100 / $TOTAL ))
ksh: syntax error: `((' unexpected
I cannot figure out what am I doing wrong... Thanks for any help -A (2 Replies)
Discussion started by: aoussenko
2 Replies
10. UNIX for Dummies Questions & Answers
I've been trying all night to come up with a script that will take a file that contains job completion times like this as input:
18:30
17:45
16:39
18:01
17:50
...
and figure the Average completion time. I've tried several things, and I just can't seem to get it to figure correctly. I'm... (5 Replies)
Discussion started by: Seawall
5 Replies