Converting odd values to even values(or vice-versa) located in a column
Hello All,
I have a below data in a .csv file where all rows where col1 is A, col2 is odd numbers, similarly even numbers for all rows where col1 is B.
Note that my data has some other columns(not shown here) too (around 100) after col2.
so on
I want to convert all odd numbers to even numbers( adding 1).. So my output is like below.
I need a one liner code for this without splitting the file into 2 portions and joining them later.
I tried tried like
But I want to avoid these temporary files temp*..
Hi All,
Is there any command which can convert binary decimal coded values to ascii values...
i have bcd values like below
оооооооооооо0о-- -v -
Pls suggest a way to convert this.
Thanks,
Deepti.Gaur (3 Replies)
I have a requirement in which i have to read a file which has multiple columns seperated by a pipe "|" from this i have to read each column values seperately and create a comma seperated row for the column and write to another file.
eg:
Input file:
ColA ColB
1 2
2 x
3 y... (5 Replies)
Dear Guyz:)
I have 2 different input files like this. I would like to pick the values or letters from the inputfile2 based on inputfile1 keys (A,F,N,X,Z).
I have done similar task by using awk but in that case the inputfiles are similar like in inputfile2 (all keys in 1st column and values in... (16 Replies)
Hi All,
I have a file which is having 3 columns as (string string integer)
a b 1
x y 2
p k 5
y y 4
.....
.....
Question:
I want get the unique value of column 2 in a sorted way(on column 2) and the sum of the 3rd column of the corresponding rows. e.g the above file should return the... (6 Replies)
Hi All,
I needd to convert values in a row to a column.
eg: Input is as: value1,value2,value3,value4,.........,value N
Required Output:
Value1
Value2
Value3
.
.
.
Value N
Please help.... (3 Replies)
I have results from some statistical analyses.
The format of the results are as given below:
I want to select lines that have a p-value (last column) less than 0.05 from all the results files (*.results) and cat to a new results file.
It would be very nice if a new column is added that tells... (2 Replies)
Hi Gurus,
I have a tab separated text file with two columns. I would like to make the first column values as headings for the second column values.
Ex.
>value1 subjects
>value2 priorities
>value3 requirements
...etc
and I want to have a file
>value1
subjects
>value2
priorities... (4 Replies)
I need to write a script that will take the input from a file and convert the number from centigrade to fahrenheit and vice versa.
This is what I have but it doesn't seem to be correct.
Also the data file has 11 numbers inside of it and the output needs to be listed as so:
Fahrenheit Temperature... (18 Replies)
Hi All,
I have a binary file which is being exported from a Database, and i need to convert that to ASCII format. How can i achieve that? And this solution should work for any file which is given to us; means they will give different files from different tables.
Thanks in advance. (8 Replies)
I have a list of columns with values that I need to transform into a row containing the range of each column. For example:
"Column A"
1
2
3
4
10
12
14
15
16
17
18
"Column B"
1
4
5
6 (4 Replies)
Discussion started by: newbio
4 Replies
LEARN ABOUT SUSE
gtk2::treestore
Gtk2::TreeStore(3) User Contributed Perl Documentation Gtk2::TreeStore(3)NAME
Gtk2::TreeStore
HIERARCHY
Glib::Object
+----Gtk2::TreeStore
INTERFACES
Gtk2::TreeModel
Gtk2::TreeDragSource
Gtk2::TreeDragDest
Gtk2::TreeSortable
Gtk2::Buildable
METHODS
treestore = Gtk2::TreeStore->new (...)
o ... (list) of strings, package names
treeiter = $tree_store->append ($parent)
o $parent (Gtk2::TreeIter or undef)
$tree_store->clear
$tree_store->set_column_types (...)
o ... (list) of strings, package names
$tree_store->set ($iter, $col1, $val1, ...)
o $iter (Gtk2::TreeIter)
o $col1 (integer) the first column number
o $val1 (scalar) the first value
o ... (list) pairs of columns and values
treeiter = $tree_store->insert ($parent, $position)
o $parent (Gtk2::TreeIter or undef)
o $position (integer)
treeiter = $tree_store->insert_after ($parent, $sibling)
o $parent (Gtk2::TreeIter or undef)
o $sibling (Gtk2::TreeIter or undef)
treeiter = $tree_store->insert_before ($parent, $sibling)
o $parent (Gtk2::TreeIter or undef)
o $sibling (Gtk2::TreeIter or undef)
treeiter = $tree_store->insert_with_values ($parent, $position, ...)
o $parent (Gtk2::TreeIter or undef)
o $position (integer) position to insert the new row
o ... (list) pairs of column numbers and values
Like doing insert followed by set, except that insert_with_values emits only the row-inserted signal, rather than row-inserted, row-
changed, and, if the store is sorted, rows-reordered as in the multiple-operation case. Since emitting the rows-reordered signal
repeatedly can affect the performance of the program, insert_with_values should generally be preferred when inserting rows in a sorted tree
store.
Since: gtk+ 2.10
boolean = $tree_store->is_ancestor ($iter, $descendant)
o $iter (Gtk2::TreeIter)
o $descendant (Gtk2::TreeIter)
integer = $tree_store->iter_depth ($iter)
o $iter (Gtk2::TreeIter)
boolean = $tree_store->iter_is_valid ($iter)
o $iter (Gtk2::TreeIter)
Since: gtk+ 2.2
$tree_store->move_after ($iter, $position)
o $iter (Gtk2::TreeIter)
o $position (Gtk2::TreeIter or undef)
Since: gtk+ 2.2
$tree_store->move_before ($iter, $position)
o $iter (Gtk2::TreeIter)
o $position (Gtk2::TreeIter or undef)
Since: gtk+ 2.2
treeiter = $tree_store->prepend ($parent)
o $parent (Gtk2::TreeIter or undef)
boolean = $tree_store->remove ($iter)
o $iter (Gtk2::TreeIter)
$tree_store->reorder ($parent, ...)
o $parent (Gtk2::TreeIter or undef)
o ... (list) of integer's, the new_order
Since: gtk+ 2.2
$tree_store->swap ($a, $b)
o $a (Gtk2::TreeIter)
o $b (Gtk2::TreeIter)
Since: gtk+ 2.2
$tree_store->set_value ($iter, $col1, $val1, ...)
o $iter (Gtk2::TreeIter)
o $col1 (integer) the first column number
o $val1 (scalar) the first value
o ... (list) pairs of columns and values
Alias for Gtk2::TreeStore::set().
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::TreeStore(3)