Search Results

Search: Posts Made By: markymarkg123
1,498
Posted By markymarkg123
Displaying field of NR, not the line #
Within AWK, how do you display a field of NR? Here's my code:


awk '(NR>1) && (P1=$1-w)>=100000 {print "increase of" " " P1*.0000179," " "kW at" " " 'NR*60/431900' " " "minutes" "\n" "change...
1,369
Posted By markymarkg123
Thanks, brother, much obliged!
Thanks, brother, much obliged!
1,369
Posted By markymarkg123
Good start! Thank you. Your code is cool, but it...
Good start! Thank you. Your code is cool, but it does not select the highest peak (line 5). It picks line 4 because it is the first to exceed 5000. Can it be written to pick line 5 (the biggest)...
1,369
Posted By markymarkg123
I don't want to know every time the increase is...
I don't want to know every time the increase is over 5000. I want to know, of the points that exceed 5000, which is the highest within a range of 10 rows. Does that explain better?

I only...
1,369
Posted By markymarkg123
Selecting highest value within a range
Within millions of lines of data, there are perhaps 20 "spikes" that are very narrow. I want only the highest value from each spike within a range of 10 rows. Possible?

My data looks like this,...
2,149
Posted By markymarkg123
Super impressed, Don. Thank you.
Super impressed, Don. Thank you.
2,149
Posted By markymarkg123
Yes indeed! Would you mind translating into...
Yes indeed! Would you mind translating into English? I don't get how it knows what x is, and I don't see where the shift to the next line happens...Thanks a ton!
2,149
Posted By markymarkg123
data sample, I modified the second column for...
data sample, I modified the second column for simplicity:

1.94183e+05 7.8e+04 1.09609e+04 -2.51962e+03 2.58938e+03 -1.78130e+04 8.17326e+03 9.09750e+03
1.95223e+05 7.8e+04 1.08129e+04 ...
2,149
Posted By markymarkg123
This is for research. The data is power and its...
This is for research. The data is power and its odd harmonics, and I am looking for a way to ID transients without having to graph everything. I just chose simple numbers so I can understand the...
2,149
Posted By markymarkg123
Comparing lines of data
Total UNIX Rookie, but I'm learning. I have columns of integer data separated by spaces, and I'm using a Mac terminal.

What I want to do:
1. Compare "line 1 column 2" (x) to "line 2 column 2"...
Showing results 1 to 10 of 10

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