Hi,
I need to insert strings "0000 00" at the each line within the file.
The postion is 37 to 42.
ex.
name1 name2 0000 00
nam name 0000 00
The "0000 00" in two lines should be lined up.
I don't know why it's not lined up when I posted it.
Can anyone help? (14 Replies)
Hi,
I have a EDI data file ARROWTEST of size 18246 characters. And I want to insert some data after 4200 position in the file. How I can find the position 4200 in that file....Please advise.
Regards, (5 Replies)
Hi All,
I have a flat file with ~ as de-limiter (e.g: aaa~ba a~caa~0~d~e)
What I want is check if the 4th character is 0 and replace it with say 4. So now it becomes : aaa~ba a~caa~4~d~e.
I have to do this for the whole file, but the delimiter position remains the same, not the... (10 Replies)
Hello,
It has been a long time since I have written unix code and I need to insert a variable into the first position of each line in a file. Below is an example of the script and the desired output file
Here is my short script
server="$(hostname)"
df -kg | awk '{print $1, $2, $3, $4,... (3 Replies)
Hi, guys. I have one question:
How can I search for a line with certain string in it and then insert a string into this line?
For example:
There is a file called shadow, the contents of it are below:
**************************
...
yuanz:VIRADxMsadfDF/Q:0:0:50:7:::... (9 Replies)
Hi,
I need to add Pipe (|) at 5th and 18th position of all records a file. How can I do this?
I tried to add it at 5th position using the below code. It didnt work. Please help!!!
awk '{substr($0,5,1) ~ /|/}{print}' $input_file > $temp_file (1 Reply)
I want to insert space in 7th position of all the lines usign vi editor or sed command
Input file
12345689010
abcdefghijk
.
.
Output file
123456 89010
abcdef ghijk
.
. (7 Replies)
Hi ,
I have a file which has line similar to below
13123324234234234234234234234234234
3454546456dfhgfhgh454645654asdasfsdsddfgdgdfg
345345345mnmnbmnb346mnb4565464564564645645
Not for each line for specific position I need to insert some '|'
Positions are fixed. Like 3,5,9,11
So the... (5 Replies)
Thanks to help from Don Cragun in post 302924174, I'm off and getting into trouble on my own (finally) with sed.
Here is my goal - insert \\r\n at the 60th character on each line and then every 76th character thereafter:
Input:... (3 Replies)
I currently have a loop that reads all .bam files in a directory (wont always be 4 like in this example,
into $id. What I am trying to do, unsucessfully, is create specific new lines in an exsisting command using
each $id. Each new line would be:
--bam ${id} \
Tried
p=$dir... (8 Replies)
Discussion started by: cmccabe
8 Replies
LEARN ABOUT DEBIAN
gtk2::alignment
Gtk2::Alignment(3pm) User Contributed Perl Documentation Gtk2::Alignment(3pm)NAME
Gtk2::Alignment - wrapper for GtkAlignment
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Alignment
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
METHODS
widget = Gtk2::Alignment->new ($xalign, $yalign, $xscale, $yscale)
o $xalign (double)
o $yalign (double)
o $xscale (double)
o $yscale (double)
$alignment->set ($xalign, $yalign, $xscale, $yscale)
o $xalign (double)
o $yalign (double)
o $xscale (double)
o $yscale (double)
(padding_top, padding_bottom, padding_left, padding_right) = $alignment->get_padding
Since: gtk+ 2.4
$alignment->set_padding ($padding_top, $padding_bottom, $padding_left, $padding_right)
o $padding_top (integer)
o $padding_bottom (integer)
o $padding_left (integer)
o $padding_right (integer)
Since: gtk+ 2.4
PROPERTIES
'bottom-padding' (Glib::UInt : default 0 : readable / writable / private)
The padding to insert at the bottom of the widget.
'left-padding' (Glib::UInt : default 0 : readable / writable / private)
The padding to insert at the left of the widget.
'right-padding' (Glib::UInt : default 0 : readable / writable / private)
The padding to insert at the right of the widget.
'top-padding' (Glib::UInt : default 0 : readable / writable / private)
The padding to insert at the top of the widget.
'xalign' (float : default 0.5 : readable / writable / private)
Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned
'xscale' (float : default 1 : readable / writable / private)
If available horizontal space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all
'yalign' (float : default 0.5 : readable / writable / private)
Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned
'yscale' (float : default 1 : readable / writable / private)
If available vertical space is bigger than needed for the child, how much of it to use for the child. 0.0 means none, 1.0 means all
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container, Gtk2::Bin
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::Alignment(3pm)