I have 2 variables in my shell scripts in which i am using awk and calculating 2 files and getting 2 different variable called in_total and out_total. I want to subtract one variable from another so plz tell me how i can do that.
Example is:
cat in_file | awk -F: '{
in_total += $1 * 86400... (3 Replies)
Is there any awk command to calculate P Value ?(Probability)
Is it possib;e to calculate P va;ue for this data for ex?
7.891284
8.148193
7.749575
7.958188
7.887702
7.714877
8.141548
7.51845
8.27736
7.929853
7.92456
8.249126
7.989113
8.012573
8.351206 (2 Replies)
Hello,
I'm trying to create a shell script (#!/bin/sh) which should tell me the age of a file in minutes...
I have a process, which delivers me all 15 minutes a new file and I want to have a monitoring script, which sends me an email, if the present file is older than 20 minutes.
To do... (10 Replies)
Hi,
I have a file with more than 2,000 rows like this:
05/26/2011,1200,1500
I would like to create a awk shell script that calculate the price average of the second and third field each 5,10 and 20 rows or ask me for the values, starting at first row.
Finally compare the average value... (1 Reply)
Hi.
For an homework, I have to simulate some part of the PS function. By reading the doc I've been able to find most of it but I don't how I can get the %cpu for each PID.
I've read on Internet that I have to do:
(utime(t)-utim(t-1))/(cputime(t)-cputime(t-1))
where cputime is the sum of... (2 Replies)
i have file input
abcedef|wert|13|03|10|04|23|A1|13|05|01|09|31
fsdasdf|ferg|12|04|25|21|21|A1|13|02|26|20|31
dfsfsad|gerg|12|04|25|21|21|A1|13|02|25|25|31
i expect the output
abcedef|wert|13|03|10|04|23|A1|13|05|01|09|31|9.516666667... (5 Replies)
Experts,
file1 : Want to find the difference of $3 field from next line's 3rd field,
The difference to be calculated from next lines 3rd field, to current lines lines 3rd field.
file1 :
Jun24_2013.06242013 3301244928 3133059904 167370640 95%
Jun25_1124.06252013 3301244928... (4 Replies)
Hi
is there a way to calculate the progress when using the tar -cvf a folder say of 300Gb (4 Replies)
Discussion started by: fretagi
4 Replies
LEARN ABOUT DEBIAN
declar
DECLAR(3) GENPAT functions DECLAR(3)NAME
DECLAR, GENPAT Package
ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in
Paris, France.
Web : http://asim.lip6.fr/recherche/alliance/
E-mail : alliance-users@asim.lip6.fr
SYNOPSYS
DECLAR("ident",":nb_space","format",mode,size,option);
PARAMETERS
ident External connector, internal observing points or register's name. For the hierarchical descriptions, the path-name of the inter-
nal observing points or registers must be specified by the syntax : instance1.instance11.name .
nb_space Specify the number of blank space between each group of value associated to the connectors, signals or registers in the output
file. 0,1,2,3,4,5,6,7,8,9 or nothing.
format Specify the format that will be used to represent the value associated to the connectors, signals or registers. X for Hexadeci-
mal, O for Octal and B for Binary.
mode Specify the type of the connectors. IN for Input, OUT for Output, INOUT for Input/Output, SIGNAL for internal observing point,
REGISTER for register. IN, OUT, INOUT, SIGNAL, REGISTER are constants (defines) provided by genpat.
size Specify the size of the bused connectors : empty ("") for the scalar connectors, "nb1" for the numbered connectors, "nb1 TO nb2"
or "(nb1 TO nb2)" (nb1 < nb2), "nb1 DOWNTO nb2" or "(nb1 DOWNTO nb2)" (nb2 < nb1) for the vectors. Where nb1 and nb2 are integer.
option Specify options of the connector. "S" for a spied connector, empty ("") for a normal connector.
DESCRIPTION
Describes a set of connectors, signals or registers of the same format, size and mode.
EXAMPLE
DECLAR("a", ":2", "X", OUT, "3 DOWNTO 0", "S");
describes : a 3, a 2, a 1, a 0
format : Hexadecimal.
mode : Output.
option : Spied connector.
the group is separated of the others with 2 blank spaces.
result :
out a(3 downto 0) X spy ;;;
DECLAR ("toto", ":", "O", INOUT, "7 TO 11", "");
describes : toto 7, toto 8, toto 9, toto 10, toto 11.
format : Octal.
mode : Input/Output.
option : none.
the group is separated of the following with 0 blank space.
result :
inout toto(7 to 11) O ;
DECLAR ("ck", ":2", "B", IN, "", "");
describes : ck.
format : Binary.
mode : Input.
option : none.
the port is separated of the following with 2 blank spaces.
result :
in ck ;;;
DECLAR ("accu.f", ":", "B", SIGNAL, "", "S");
describes : accu.f .
format : Binary.
mode : Signal.
option : Spied connector.
the signal is separated of the following with 0 blank space.
result :
signal accu.f spy ;
DECLAR ("accu.reg", ":1", "B", REGISTER, "(3)", "");
describes : accu.reg .
format : Binary.
mode : Register.
option : none.
the signal is separated of the following with 1 blank space.
result :
register accu.reg(3) ;;;;
WARNING
The DECLAR function from the 4.0 release have a new parameter (option).
SEE ALSO ARRAY(3), genpat(1), pat(5)BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory.
We need your feedback to improve documentation and tools.
ASIM /LIP6 October 1, 1997 DECLAR(3)