i- Is value of field2 is going to be always lesser than field3's value?(though I have considered both the cases into my code following)
- yes field2 will always be less than field 3
Quote:
ii- You have mentioned about last section of Input_file1 as Missing in Reference but found in IDP: , so do you mean by last column? Sorry I couldn't get it, so I didn't keep this point into my code.
-in file1 there are 3 sections or headers
- only the last section needs to be searched and the other two sections can be skipped. Each section ends with a :
Quote:
iii- Could you please let us know if we need to update the Input_file1 itself here?
- yes, if the file1 can be updated in-place that would be helpful. Maybe through redirection?
I need to get a section of a file based on 2 params. I want the part of the file between param 1 & 2. I have tried a bunch of ways and just can't seem to get it right. Can someone please help me out.....its much appreciated. Here is what I have found that looks like what I want....but doesn't... (12 Replies)
Hi All,
I have two files file1 and file2(lookup file).I need to map more than one keyfields of file1 with file2.how can we achieve it using awk.
file1(max 2.2 million records)
--------------------------
680720|680721|077
680720|680721|978
680721|680722|090
file2(no idea about the... (1 Reply)
Write a quick shell snippet to find all of the IPV4 IP addresses
in any and all of the files under /var/lib/output/*, ignoring
whatever else may be in those files. Perform a reverse lookup on
each, and format the output neatly, like "IP=192.168.0.1,
... (0 Replies)
I want to lookup filea with fileb,filec and filed.
If entry in filea exist in fileb and filec mark Y and then if entry in filea exist in filed mark as Y.
Final output should have all the entries from filea.
This prints only matching entries from file a in fileb i want all entries from... (9 Replies)
I have a list of Servers in no particular order as follows:
virtualMachines="IIBSBS IIBVICDMS01 IIBVICMA01"And I am generating some output from a pre-existing script that gives me the following (this is a sample output selection).
9/17/2010 8:00:05 PM: Normal backup using VDRBACKUPS... (2 Replies)
I have the below 2 files:
1) Third field from file1.txt should be compared to the first field of lookup.txt.
2) If match found then third field, file1.txt should be substituted with the second field from lookup.txt.
3)Else just print the line from file1.txt.
File1.txt:... (4 Replies)
have written a combined sed+awk to perform a lookup operation which works but looking to enhance it.
looking to match a record using any of the comma separated values + return selected fields from the record - including the field header. so:
cat foo
make,model,engine,trim,value... (6 Replies)
The below awk uses $3 and $4 in search as the min and max, then takes each $2 value in lookup and compares it. If the value in lookupfalls within the range in searchthen it prints the entire line in lookup/ICODE]. What I can't seem to figure out is how to print the matching $5 from search on that... (4 Replies)
I am trying to update the below awk, kindly provided by @RavinderSingh13, to update each line of file1 with either Low or No Low based on matching $2 of file1 to a range in $2 and $3 of file2. If the $2 value in file1 matches the range in file2 then that line is Low, otherwise it is No Low in the... (3 Replies)
I use conditional operators alot in AWK to print rows from large text files based on values in a certain column. For example:
awk -F '\t' '{ if ($1 == "A" || $1 == "C" ) print $0}' OFS="\t" file1.txt > file2.txt
In this case every row is printed from file1 to file2 for which the column 1... (5 Replies)
Discussion started by: Geneanalyst
5 Replies
LEARN ABOUT MOJAVE
podselect
PODSELECT(1) Perl Programmers Reference Guide PODSELECT(1)NAME
podselect - print selected sections of pod documentation on standard output
SYNOPSIS
podselect [-help] [-man] [-section section-spec] [file ...]
OPTIONS AND ARGUMENTS -help Print a brief help message and exit.
-man Print the manual page and exit.
-section section-spec
Specify a section to include in the output. See "SECTION SPECIFICATIONS" in Pod::Parser for the format to use for section-spec.
This option may be given multiple times on the command line.
file The pathname of a file from which to select sections of pod documentation (defaults to standard input).
DESCRIPTION
podselect will read the given input files looking for pod documentation and will print out (in raw pod format) all sections that match one
ore more of the given section specifications. If no section specifications are given than all pod sections encountered are output.
podselect invokes the podselect() function exported by Pod::Select Please see "podselect()" in Pod::Select for more details.
SEE ALSO
Pod::Parser and Pod::Select
AUTHOR
Please report bugs using <http://rt.cpan.org>.
Brad Appleton <bradapp@enteract.com>
Based on code for Pod::Text::pod2text(1) written by Tom Christiansen <tchrist@mox.perl.com>
perl v5.18.2 2018-08-17 PODSELECT(1)