I have a ";" delimited file.Whcih conatins a number fileds of length 4 charcters in 8th position
But there is a alphanumeric charcters like :
space, ";" , "," , "/" , "23-1" ,
"23 1" , "aqjhdj" , "jun-23" , "APR-04" , "4:00AM" , "-234" , "56784 ", "." , "+"
"_" , "&" , "*" , "^" , "%" , "!"... (2 Replies)
Hi,
I have a file with format
a b c d e
1 1 2 2 2
1 2 2 2 3
1 1 1 1 2
1 1 1 1 4
1 1 1 1 6
in column e i want to find all similar fields ( with perl script )and sum it how many are there
for instance in format above.
2 - 2 times
4 - 1 time
6 - 1 time
what i use is
... (14 Replies)
Hi All,
I got stuck up with shell script where i use awk. The scenario which i am working on is as below.
I have a file text.txt with contents
COL1 COL2 COL3 COL4
1 A 500 200
1 B 500 300
2 A 290 150
2 B 290 140
3 C 100 100
I could able to sum col 3 and col4 based on col1 using... (1 Reply)
Hi below is the input file, i need to find repeated words and sum up the values of it which is second field from the repeated work.Im trying but getting no where close to it.Kindly give me a hint on how to go about it
Input
fruits,apple,20,fruits,mango,20,veg,carrot,12,veg,raddish,30... (11 Replies)
Hi All,
I need to calculat the sum of the particular field in text file. And the datatype of the field in file is decimal(18,2). If the file is small, then I am facing any problem. But the file is huge, then the result is converted into exponential format.
I tried using various command thr... (0 Replies)
Dear Experts,
Kindly help me please to get the average from column 14 and to write the value at the last field., But we need to take as reference the column 16., example the first 4 lines has the same value in column 16, therefore I want ot get the average only for these lines in column 14. And... (2 Replies)
In the below awk I am trying to combine all matching $4 into a single $5 (up to the -), and count the lines in $6 and average all values in $7. The awk is close but it seems to only be using the last line in the file and skipping all others. The posted input is a sample of the file that is over... (3 Replies)
Im looking for a way to average the values in field 14 (when field 2 is equal to 2016) and fields 3 and 4 (when field 2 is equal to 2017).
Any help is appreciated.
001001 2016 33.22 38.19 48.07 51.75 59.77 67.68 70.86 72.21 66.92 53.67 42.31 40.15
001001 2017 ... (10 Replies)
In the awk below I am trying to get the average of the sum of $7 if the string in $4 matches in the line below it. The --- in the desired out is not needed, it is just to illustrate the calculation. The awk executes and produces the current out. I am not sure why the middle line is skipped and the... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
gpiv_s-avg
GPIV_S-AVG(1) General Commands Manual GPIV_S-AVG(1)NAME
gpiv_s-avg - Spatial statistics of PIV data.
SYNOPSIS
gpiv_s-avg [-h | --help] [-p | --print] [-s] [-no_s] [-v | --version] [filename] < stdin > stdout
DESCRIPTION
gpiv_s-avg reports the spatial global mean velocities and variances in x and y-direction of a PIV data stream. Only input data of which the
peak number is not equal to -1 are taken into account.
The parameters read from the configuration resources (containing the key POST) may be overruled by the command line options, as explained
below.
Options-h | --help
On-line help.
-p | --print
Prints parameters, command line options and input and eventually filenames to stdout. The output is identic of filename.par, in
case -f is used.
-s Subtracts the mean x-and y-particle displacements from the input data.
-no_s Suppresses subtracting the mean values from the input data.
-v | --version
Prints version information on standard output, then exits successfully.
[-z dx0 dy0]
zero offset of displacement or velocity estimators.
filename
Input PIV file. Overrides stdin and stdout. The output will be written to filename.sa.piv. Parameters are stored in filename.par and
may be used for future use by including them in ./gpivrc.
SEE ALSO
gpivtools
NOTES AUTHOR
Gerber Van der Graaf
BUGS
The program has been tested for PIV data. So far, no bugs have been found.
8 November 2006 GPIV_S-AVG(1)