This is a snippet of my data. What I want to do is to find out if the range of column 5 and column 6 is a subset of the range between column 2 and column 3. The data in column 2 and 3 are longer than data in column 5 and 6. A script has to scan through columns 2 and 3 in totality for every range defined by column 5 and 6. How do I do it. Any awk scripts? I am sorry if I did not follow the forum's rules, this is my first time using it.
Last edited by vbe; 01-03-2020 at 05:25 AM..
Reason: code tags - not quotes please
I want to print between the range two patterns if a particular pattern is present in between the two patterns. I am new to Unix. Any help would be greatly appreciated.
e.g.
Pattern1
Bombay
Calcutta
Delhi
Pattern2
Pattern1
Patna
Madras
Gwalior
Delhi
Pattern2
Pattern1... (2 Replies)
Hello everyone. I'm new to the boards, I hope I can get and possibly give some help through these forums.
I need some help.
I have two CSV files, let's call them File A and File B.
This is the structure for File A:
ID, VAR1, VAR2, VAR3 - VAR50 (where the VAR 1-VAR50 are either 0 or 1)
... (1 Reply)
Hi;
For sure there's an easy answer to this one that I am not finding..
I first set a variable, say
b1a:] max=5
then I want to use max to set the range for a for loop like so (it should run for i in 1:5)
b1a:] for i in {1..$max}; do echo $i; done
{1..5}
I would like the output... (2 Replies)
Dear all,
I have a file lik below: n of row=420, n of letters in each row=100000 like below: there is no space between the letters.
what I want is: the 75000th letter to the 85000th letter in each row.
how to do that? thanks a lot!
... (2 Replies)
The following is part of a larger project and sed is (right now) a given. I am working on a recursive Korn shell function to "peel off" XML tags from a larger text. Just for context i will show the complete function (not working right now) here:
function pGetXML
{
typeset chTag="$1"
typeset... (5 Replies)
hi all,
Say i have a range like 0 - 1000 and i need to split into diffrent files the lines which are within a specific fixed sub-range. I can achieve this manually but is not scalable if the range increase.
E.g
cat file1.txt
Response time 2 ms
Response time 15 ms
Response time 101... (12 Replies)
Hi. I have a large data file. the first column has unique identifiers. I have approximately 5 of these files and they have varying number of columns in their rows. I need to extract ~300 of the rows in to a separate file. I'm not looking for something that would do all 5 files at once, but... (7 Replies)
I have files being generated in format A20140326.00........ to A20140326.24.............
I need to copy these hourly basis from one location to another.
Eg. If i copy from 14 to 19 the hour, I use wildcard as A201403226.1*.
Requirement is : I need to copy from 06 hour and wil run the script... (1 Reply)
In my Linux system ephemeral port range is showing different ranges as follows
$ cat /proc/sys/net/ipv4/ip_local_port_range
32768 61000
cat /etc/sysctl.conf | grep net.ipv4.ip_local_port_range
net.ipv4.ip_local_port_range = 9000 65500
Which will be the effective ephemeral port... (5 Replies)
ColumnInfo(3pm) LogReport's Lire Documentation ColumnInfo(3pm)NAME
Lire::Report::ColumnInfo - Object that holds column meta-data.
SYNOPSIS
my $info = $subreport->column_info_by_idx( 0 );
print "Column's name: ", $info->name(), "
";
print "Column's index: ", $info->index(), "
";
print "Column's type: ", $info->type(), "
";
print "Column's label: ", $info->label(), "
";
DESCRIPTION
The Lire::Report::ColumnInfo object contains meta-data information on the columns of a subreport.
CONSTRUCTOR
new( $group, $name, $class, $type, [$label]])
Creates a new Lire::Report::ColumnInfo object. The column info attributes are initialized based on $name, $class, $type and $label.
OBJECT METHODS
name()
Returns the name of this column. This name can be used to find the group operation (from the report specification) that is responsible for
the column's content.
class()
Returns the column's class of data. This will be either 'numerical' or 'categorical'.
type()
Returns the column's type. This referes to the type of the DLF field that was usd to generate this column's values.
group_info()
Returns the GroupInfo object which contains this column.
index()
Returns the column's index in the table. This will be undef until the column info object is added to a Lire::Subreport or Lire::Group
object.
col_start()
Returns the display column which is the start of the cell span that should be used to render this column's values.
col_end()
Returns the display column which is the end of the cell span that should be used to render this column's values.
col_width()
Returns the suggested column width for this column in characters.
max_chars()
This method returns the length of the longest string in that column (including the label).
avg_chars()
This method returns the average length of strings in that column (including the label). This will be round up to the next integer (1.3 ->
2).
label( [$label] )
Returns the column's label. If the $label parameter is defined, the column's label will be set to this new value.
SEE ALSO Lire::Report::Subreport(3pm)Lire::Report::GroupInfo(3pm)VERSION
$Id: ColumnInfo.pm,v 1.15 2006/07/23 13:16:31 vanbaal Exp $
COPYRIGHT
Copyright (C) 2002 Stichting LogReport Foundation LogReport@LogReport.org
This file is part of Lire.
Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
AUTHOR
Francis J. Lacoste <flacoste@logreport.org>
Lire 2.1.1 2006-07-23 ColumnInfo(3pm)