02-27-2008
Expand the problem
Can you please provide more details, like the layout of the input file and what kind of replacement are you looking for exactly?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
suppose u have a file
aas P-H 123
gdg O-U 223
hdy I-Y 12
fgd K-O 333
ssa L-P 32
output shud be like that
aas P123H
gdg O223U
hdy I12Y
fgd K333O
ssa L32P
thanks (7 Replies)
Discussion started by: cdfd123
7 Replies
2. Shell Programming and Scripting
Hello all,
can you help me in this problem, assume We have two txt file (file_1 and file_3) one is file_1 contains the data:
a 0
b 1
c 3
a 7
b 4
c 5
b 8
d 6
.
.
.
.
and I need to count the lines with the matching data (a,b,..) and print in new file called file_2 such as the... (4 Replies)
Discussion started by: GoldenFalcon10
4 Replies
3. UNIX for Dummies Questions & Answers
hey,
I have a file with numbers in US notation (1,000,000.00) as well as european notation (1.000.000,00)
i want all the numbers to be in european notation.
the numbers are in a text file, so to prevent that the regex also changes the commas in a sentence/text i thought of:
sed 's/,/\./'... (2 Replies)
Discussion started by: FOBoy
2 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I've been trying to replace the numbers in the first column of my text file with all ones, unless the number is equal to 8. I have this:
1 1 11 123 258
2 1 9 135 175
1 1 15 143 274
8 1 13 153 172
8 1 13 154 166
8 1 13 154 167
3 1 15 237 255
4 1 15 243 202
1 1 13 133 166... (4 Replies)
Discussion started by: goodbenito
4 Replies
5. Shell Programming and Scripting
Dear All,
I have a final output files as
736645|0|
13879|1|
495563|10|
127933|14|
4975|16|
49038|6|
53560|7|
135115|8|
178857|9|
Now I want to replace second column with respective tag as per the value (4 Replies)
Discussion started by: jojo123
4 Replies
6. Shell Programming and Scripting
Hello All,
I am having problem to find what is the smallest number from 90% of highest numbers from all numbers in file. I am having file with thousands of lines and hundreds of columns.
I am familiar mainly with bash but I am open to whatever suggestion witch will lead to the solutions.
If I... (11 Replies)
Discussion started by: Apfik
11 Replies
7. Shell Programming and Scripting
I have a csv file with occasional multiple entries in the second column.
111111,104,07-24-2011,3.15,N,
222222,020 140,07-24-2011,10.00,N,I want the result
111111,104,07-24-2011,3.15,N,
222222,020,07-24-2011,10.00,N,
222222,140,07-24-2011,10.00,N,
I know I can get the output of the second... (5 Replies)
Discussion started by: ffdstanley
5 Replies
8. Shell Programming and Scripting
How would I do this? How could i use <> symbols for numbers in the find/replace code below?
perl -pi -e 's/test/tst/'
OR is there a better way?
100 5000 2 432 4 2 33 4 5 6 65 300 301
needs to be:
100 300 2 300 4 2 33 4 5 6 65 300 300
also it might not always need spaces... i... (12 Replies)
Discussion started by: herot
12 Replies
9. Shell Programming and Scripting
Hi,
I have a set of files in a directory that I have to read and replace the first occurrence of a number with another dummy number. This is what I have so far but it does not seem to work. The files have lot of other data in each row and each data element is separated by ,@,
for file in... (13 Replies)
Discussion started by: scorpioraghu
13 Replies
10. Shell Programming and Scripting
Hello,
I am trying to make a awk code that will take 2 files, a txt file like this :
1 1 88 c(1:38, 42, 102)
2 2 128 c(39:41, 43:101, 103:105, 153, 155:189, 292, 344:369)
3 3 84 c(190:249, 603, 606:607, 609:629)
4 4 12 ... (8 Replies)
Discussion started by: nastaziales
8 Replies
LEARN ABOUT SUSE
pango::layout
Pango::Layout(3) User Contributed Perl Documentation Pango::Layout(3)
NAME
Pango::Layout
HIERARCHY
Glib::Object
+----Pango::Layout
METHODS
layout = Pango::Layout->new ($context)
o $context (Pango::Context)
alignment = $layout->get_alignment
$layout->set_alignment ($alignment)
o $alignment (Pango::Alignment)
attrlist or undef = $layout->get_attributes
$layout->set_attributes ($attrs)
o $attrs (Pango::AttrList or undef)
boolean = $layout->get_auto_dir
Since: pango 1.4
$layout->set_auto_dir ($auto_dir)
o $auto_dir (boolean)
Since: pango 1.4
integer = $layout->get_baseline
Since: pango 1.22
$layout->context_changed
context = $layout->get_context
layout = $src->copy
(strong_pos, weak_pos) = $layout->get_cursor_pos ($index)
o $index_ (integer)
ellipsizemode = $layout->get_ellipsize
Since: pango 1.6
$layout->set_ellipsize ($ellipsize)
o $ellipsize (Pango::EllipsizeMode)
Since: pango 1.6
(ink_rect, logical_rect) = $layout->get_extents
(ink_rect, logical_rect) = $layout->get_pixel_extents
fontdescription or undef = $layout->get_font_description
Since: pango 1.8
$layout->set_font_description ($desc)
o $desc (Pango::FontDescription or undef)
integer = $layout->get_height
Since: pango 1.20
$layout->set_height ($height)
o $height (integer)
Since: pango 1.20
integer = $layout->get_indent
$layout->set_indent ($newval)
o $newval (integer)
array reference = $layout->index_to_pos ($index_)
o $index_ (integer)
boolean = $layout->is_ellipsized
Since: pango 1.16
boolean = $layout->is_wrapped
Since: pango 1.16
layoutiter = $layout->get_iter
integer = $layout->get_justify
$layout->set_justify ($newval)
o $newval (integer)
integer = $layout->get_line_count
layoutline or undef = $layout->get_line ($line)
o $line (integer)
layoutline or undef = $layout->get_line_readonly ($line)
o $line (integer)
Since: pango 1.16
list = $layout->get_lines
list = $layout->get_lines_readonly
Since: pango 1.16
list = $layout->get_log_attrs
Returns a list of Pango::LogAttr's
$layout->set_markup ($markup)
o $markup (string)
accel_char = $layout->set_markup_with_accel ($markup, $accel_marker)
o $markup (string)
o $accel_marker (character)
(new_index, new_trailing) = $layout->move_cursor_visually ($strong, $old_index, $old_trailing, $direction)
o $strong (boolean)
o $old_index (integer)
o $old_trailing (integer)
o $direction (integer)
list = $layout->get_pixel_extents
(width, height) = $layout->get_pixel_size
integer = $layout->get_single_paragraph_mode
$layout->set_single_paragraph_mode ($newval)
o $newval (integer)
(width, height) = $layout->get_size
integer = $layout->get_spacing
$layout->set_spacing ($newval)
o $newval (integer)
tabarray or undef = $layout->get_tabs
$layout->set_tabs ($tabs)
o $tabs (Pango::TabArray or undef)
string = $layout->get_text
$layout->set_text ($text)
o $text (string)
integer = $layout->get_unknown_glyphs_count
Since: pango 1.16
integer = $layout->get_width
$layout->set_width ($newval)
o $newval (integer)
wrapmode = $layout->get_wrap
$layout->set_wrap ($wrap)
o $wrap (Pango::WrapMode)
(index, trailing) = $layout->xy_to_index ($x, $y)
o $x (integer)
o $y (integer)
ENUMS AND FLAGS
enum Pango::Alignment
o 'left' / 'PANGO_ALIGN_LEFT'
o 'center' / 'PANGO_ALIGN_CENTER'
o 'right' / 'PANGO_ALIGN_RIGHT'
enum Pango::EllipsizeMode
o 'none' / 'PANGO_ELLIPSIZE_NONE'
o 'start' / 'PANGO_ELLIPSIZE_START'
o 'middle' / 'PANGO_ELLIPSIZE_MIDDLE'
o 'end' / 'PANGO_ELLIPSIZE_END'
enum Pango::WrapMode
o 'word' / 'PANGO_WRAP_WORD'
o 'char' / 'PANGO_WRAP_CHAR'
o 'word-char' / 'PANGO_WRAP_WORD_CHAR'
SEE ALSO
Pango, Glib::Object
COPYRIGHT
Copyright (C) 2003-2009 by the gtk2-perl team.
This software is licensed under the LGPL. See Pango for a full notice.
perl v5.12.1 2010-07-05 Pango::Layout(3)