This HTML automatically generated with rman for NEMO
Table of Contents
tabrange - keep rows where given column(s) are in range
tabrange
[parameter=value]
For a given column all rows where a given
column is in a given range will be output to stdout.
If subset of rows of
columns need to be used before, use tabrows(1NEMO)
or tabcols(1NEMO)
.
The following parameters are recognized in order; they may be given in
any order if the keyword is also given. Use --help to confirm this man page
is up to date.
- in=
- Input file name. No default.
- xcol=column_number(s
- Column(s)
to use for range, where 1 is the first column. [1]
- xrange=xmin,xmax
- A Min
and Max value pair for each column to keep in output. These are logically
ANDed. Output will be the full line that matches the criterion
Using
the default tabgen(1NEMO)
program, and only show values where column 1
is between values 0 and 0.1:
tabgen - | tabrange - 1 0,0.1
0.0813695 0.406962 0.410499 0.0580781 0.00621213
0.0119871 0.0043076 0.246779 0.298222 0.976148
0.0599213 0.868871 0.141264 0.703102 0.940953
of course this can also be done with awk(1)
:
tabgen - | awk ’{if($1>=0
&& $1<=0.1) print $0}’
and of course in python this stuff is even easier to do (example soon
coming)
How about multiple columns?
tabrange foo.tab 1,2,3 -1,1,-4,4,-10,10
could be an option how to do it. this scales
tabmath(1NEMO)
, tabzoom(1NEMO)
,
tabrows(1NEMO)
, tabcols(1NEMO)
, table(5NEMO)
Peter Teuben
23-mar-2024 Created ... PJT
24-mar-2024 0.2 allow multiple columns PJT
Table of Contents