Could you please check following if that helps you, also I haven't tested it with trusting your formula. Only adding the logic to perform this logic at every 40th line of Input_file.
Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
What the code above does is to give you the stddev every forty lines - for ALL of the preceding records (thanks Ravinder)
or did you mean to treat every 40 lines as a separate population of size 40, except possibly the END{} clause? - what RudiC shows except that the divisors should not be NR, rather 40 and the divisor in the END has to be calculated (maybe).
A clear description of what you want would help a lot.
Last edited by jim mcnamara; 01-27-2016 at 09:07 AM..
These 2 Users Gave Thanks to jim mcnamara For This Post:
What the code above does is to give you the stddev every forty lines - for ALL of the preceding records (thanks Ravinder)
or did you mean to treat every 40 lines as a separate population of size 40, except possibly the END{} clause? - what RudiC shows except that the divisors should not be NR, rather 40 and the divisor in the END has to be calculated (maybe).
A clear description of what you want would help a lot.
Hi Jim,
Thank you for good thoughts.
What I meant was to treat every 40rows as a set.
Lines 1 to 40 as set1
Lines 41 to 80 as set2
.......
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
I have a bunch of random character lines like ABCEDFG. I want to find all lines with "A" and then change any "E" to "X" in the same line. ALL lines with "A" will have an "X" somewhere in it. I have tried sed awk and vi editor. I get close, not quite there. I know someone has already solved this... (10 Replies)
I have a file with say 50 columns, each containing a whole lot of data.
Each column contains data from a separate simulation, but each simulation is related to the data in the last (REFERENCE) column $50
I need to calculate the RMS deviation for each data line, i.e. column 1 relative to... (12 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
I want to prompt a user for input but I want it to timeout after a specified time if no response is given. I tried the sleep command but this does not work. I am using ksh.
Thanks. (10 Replies)