Can anyone please assist me?
Please find the attached input and output file for ur reference.
a)Incase if i get negative value (ex:-000100) in the 11th column then i have to convert the value to 0000000(7 zeros-length is 7) and then
print the entire record.
b)Incase if there is no negative value present in the 11th column , then print all records as it is.
Hi Gurus,
In my file I have an amount field from position 74 to 87, which contains values starting with '+' as well as '-'. I want to add all positive values in a varible called "CREDIT" and all negative values in a variable "DEBIT". I know, we can use grep to identify values with positive and... (4 Replies)
hi i am using printf in a script and it is not printing negative values..i have to use printf to get rid of the newline..here is my code:
fin=`echo $a - $b | bc`
printf "${fin}," >> test
these statements are in a loop. here is what i get when i try to subtract 4 from 8:
./scr1: line... (2 Replies)
Hello,
I have a list like this :
1
2
-4
0
-3
-7
5
6 etc.
Is there a way to remove all the positive values and print only the negative values, without using grep, sed or awk?
Thanks,
Prasanna (4 Replies)
Hi all,
I have a file that looks like shown below. I want to find places where the value in column 2 change from negative to positive and vice versa and return the value on column 1 at that point. I wonder if this is possible in shell script or awk .. please help!
Here is the original data
... (6 Replies)
Ok, so i monitor disk space on remote machines using snmp. Works great for me. But whenever a particular partition happens to have Terabytes of data, snmp starts reporting negative values.
Can someone please tell me how to get around this problem?
The AllocationUnit is 512 bytes. Weird... (0 Replies)
Hi, i need help on replacing negative values in a column with 0. any quick fix on this? thanks much. for instance,
input:
1
2.3
-0.4
-25
12
13
45
-12
desired output
1
2.3
0
0
12
13
45 (4 Replies)
Hi All,
i have 20 Obligors when ever i dont find all of them on particular row/line from each in put i need to print it in different file.
using below command but it is not working please help at earliest.
Steps:
set -A FILENAME $( cat... (10 Replies)
Hi Gurus,
I have requirement need to sum the value, the logic is if the value is negative then time -1, I tried below two ways. one is failed, another one doesn't work.
awk -F"," '{if($8< 0 $8*-1 else $8) sum+=$8}{print sum, $8} END{printf("%.2f\n",sum)}'
awk -F","... (4 Replies)
Discussion started by: ken6503
4 Replies
LEARN ABOUT DEBIAN
lire::report::columninfo
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)