Sponsored Content
Full Discussion: Getting Next Best Hit..
Top Forums Shell Programming and Scripting Getting Next Best Hit.. Post 302513312 by Chubler_XL on Tuesday 12th of April 2011 11:14:26 PM
Old 04-13-2011
I have a solution in awk:
Code:
awk 'V&&V!=$1{print vval;V=x} $1!=$2&&!V||$3<B{B=$3;V=$1; vval=$0} END{print vval}'


Last edited by Chubler_XL; 04-13-2011 at 02:27 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Anyone else see a performance hit from ext3

I reinstalled my Linux box with RedHat 7.2 and used the ext3 journaling file system. This thing is a pig now. There isn't much running on the box, and performance is sad. (1 Reply)
Discussion started by: 98_1LE
1 Replies

2. UNIX for Dummies Questions & Answers

Write catch hit ratio

Dear friends, Does any one know about alert "write catch hit ratio" on Solaris 9? How to avoid???? (0 Replies)
Discussion started by: solaris5.10
0 Replies

3. Filesystems, Disks and Memory

Performance Hit With Many Files

Is it slower to open or create a file in a directory with 1 million files than a directory with 1000 files? How much slower? Where can I find information about this? I'm mainly concerned about JFS on AIX, but also NTFS on Windows Server. Is there a difference? I'm trying to determine a good... (6 Replies)
Discussion started by: cyner
6 Replies

4. Shell Programming and Scripting

Shell Script to hit a url

Hi all, I have a php file that grabs xml, parses it and updates my db accordingly. I want to automate the execution of this process, rather than having to hit the url manually. I have been looking into using cron to execute a script to do this, however i'm not exactly sure what command i would... (1 Reply)
Discussion started by: restivz77
1 Replies

5. Programming

why multiple SIGINT raises when i hit C-c

hi, in my application, i have set up to capture SIGINT and execute a handler.the problem is whenever i hit C-c, multiple SIGINT are sent to the application.I have blocked the SIGINT right after catching the first one but it is unsuccessful.Here is what i do : jmp_buf main_loop; int... (1 Reply)
Discussion started by: Sedighzadeh
1 Replies

6. Shell Programming and Scripting

Hit count on a shell script

I have a unix shell script (ex.sh) written. How to find out how many users (incl. myself) have run this .sh ? I can insert code snipet at top of script if need be. - Ravi (2 Replies)
Discussion started by: ravi368
2 Replies

7. SuSE

Java hit

Hello, I'm having trouble looking for info for SUSIE on this CVE-2012-4681. This is basically the newest Java hit. It is mostly a web browser issue but I would like to see if the versions on our servers are vulnerable. I already found the pages/info for Solaris and RHEL. Any help would be... (4 Replies)
Discussion started by: bitlord
4 Replies

8. Cybersecurity

vnc password hit from Retina

Hello, I'm having an issue with VNC. Security at work says that they scanned my servers (Solaris, RHEL, SLES) and found that you don't need a password to access a VNC session. I have tested this and you can't login to the VNC session without a password. Can someone tell what the Retina scanner... (1 Reply)
Discussion started by: bitlord
1 Replies

9. Shell Programming and Scripting

How to grep and print the next and previous N lines after the hit

Hello, I know that gnu grep has option of -A and -B to extra previous and next lines. But I'm using HP UX and its grep does not support these options. BID="0/0/6/1/1.145.17.255.0.0.0" I need to search a file using $BID and get next 5 lines and previous 5 lines separately. Please... (1 Reply)
Discussion started by: reddyr
1 Replies

10. Shell Programming and Scripting

Curl to hit the submit button

Hello, I am looking to hit a URL using curl and click on submit button so that I can get the results. The below is the code <input name="tos_accepted" id="tos_accepted" class="button" type="submit" value="Yes, I Agree"/> <input name="tos_discarded" id="tos_discarded"... (1 Reply)
Discussion started by: Kochappa
1 Replies
INPUT(1)                                                      General Commands Manual                                                     INPUT(1)

NAME
input - Yagi-Uda project antenna defining program SYNOPSIS
input [ - h ] DESCRIPTION
The program input is one of a number of executable programs that forms part of a set of programs, collectively known as the Yagi-Uda project , which were designed for analysis and optimisation of Yagi-Uda antennas. input is an interactive program, that asks the user for information about a Yagi design, such as position of elements, spacing between elements, frequency span of interest and a filename to save the data to. input then writes this information into an ASCII file, which can be read by yagi or optimise The file is ASCII and it's for- mat is easily understood by inspection (there are comments printed in it), so it can if necessary be edited manually. After running input and specifying a filename (for example 144e10) you should then type yagi 144e10 and then output 144e10 and optionally optimise 144e10 OPTIONS
-h Print a help message. FILES
filename ASCII data file in which design is put. PLATFORMS
Both DOS and Unix versions have been built. The DOS version as distributed requires a 386 PC with a 387 maths coprocessor. AUTHORS
Dr. David Kirkby G8WRB (david.kirkby@onetel.net). with help with in converting to DOS/PC from Dr. Joe Mack NA3T (mack@fcrfv2.ncifcrf.gov) SEE ALSO
first(1), yagi(), output(1), optimise(1), input (5), first(5), yagi(5), output(5) and optimise(5). Bugs should be reported to david.kirkby@onetel.net. Bugs tend actually to be fixed if they can be isolated, so it is in your interest to report them in such a way that they can be easily reproduced. If a mistake is made during inputting of data (such as entering an incorrect length), it is not possible to go back and correct this. You should make a note of the error, and edit the ASCII text file with a text editor (vi, DOS edit etc). Version 1.16 24th October 2000 INPUT(1)
All times are GMT -4. The time now is 03:49 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy