08-29-2012
If you are loading into Oracle using sqlldr, you can specify what you want through a load control file without the need to change the input file. Other loading utilities may have similar capabilities.
This User Gave Thanks to binlib For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have lines in a file that look like this:
machine: machinea
machine: machineb
machine: randomwhatevermachine
I want to replace the machine lines with:
machine: machinec
I tried
perl -pi -e "s/#machine:\?*/machine: machinec/" filename
But this ended up doing this:
... (2 Replies)
Discussion started by: Lindarella
2 Replies
2. Shell Programming and Scripting
I've been working on this all night and finally have to ask for help... and not just from my coffee pot.
I need to replace a line of text only when it is proceeded by a line containing only the letter "H"
Input:
H -2.204711 -0.922090 -0.024814
P
6-311+G(d)
****
C
6-311+G(d)... (7 Replies)
Discussion started by: EmperorNorton
7 Replies
3. Shell Programming and Scripting
Hi friends,
I want to substitute "a ='....'," with ":" in everywhere in a string using Perl.
Details:
----------
my $str= " c1='fgfasfgasggfgff.,akhkhahha', c2='bbbn', c3='hg5 sh' ";
Required o/p: $str= " c1:c2:c3 "
I tried as below:
$str=~ s/=\'.*\',/:/g ;
print "str=... (14 Replies)
Discussion started by: Niroj
14 Replies
4. Shell Programming and Scripting
Hi,
I have a template file and want to replace 3 parameters to the values that I want. these values are in a parameter file.
Any idea how to do this in perl?
the parameter file looks like:
host_name = jupiter
PORT = 1562
IPADDRESS = 10.1.34.10
the template file has lots of entry.... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies
5. Shell Programming and Scripting
Hi All,
I need the perl version of the below sed command:
sed 's/abc.*/&.txt/g' <filename>
Because I'm trying to do some replacement recursively using perl and the above replacement is replacing the abc* with "&.txt" exactly.
Thanks,
Arun (9 Replies)
Discussion started by: arun_maffy
9 Replies
6. Shell Programming and Scripting
Hello all
I have a strings like
" Watch news 24x7 "."x-wars is glowing"
" Watch news like 24 x 7"."x-mas will be celebrated"
" Dimensions of box is 24x23x47 ".
I have to remove the x(by) in between the number. If i just replace x, it will also remove all x's from text which i do not want.... (1 Reply)
Discussion started by: vasuarjula
1 Replies
7. Shell Programming and Scripting
I have a large text csv file that I'm working with. It will look something like this:
D,",E",C
O,"F,",I
O,gh,R
The second column always has a two digit random code (can be numbers, letters or any characters). When one of the characters happens to be a comma, the string is quoted. I want to... (5 Replies)
Discussion started by: beenny
5 Replies
8. Shell Programming and Scripting
hi Geeks,
my input file contains data like =>
53 - Deewana Kar Raha Hai.mp3
54 - Hale Dil.mp3
55 - Ishq Sufiyana.mp3
56 - Abhi Kuch Dino Se.mp3
57 - Pee Loon Hoto Ki Sargam.mp3
I had used sed command to remove the prefix from the file name like
sed 's/^\
it gives me the perfect... (4 Replies)
Discussion started by: lohith.dutta
4 Replies
9. Shell Programming and Scripting
Hi,
With the following Perl syntax, how to print the $_ value after the substitution?
s/(\s*|\n)//g foreach (<>);
If I use the below code, it produces some numeric output print s/(\s*|\n)//g foreach (<>); (2 Replies)
Discussion started by: royalibrahim
2 Replies
10. Shell Programming and Scripting
OSX
I have been grinding my teeth on a portion of code. I am building a bash script that edits a html email template. In the template, I have place holders for SED (or whatever program is appropriate) to use as anchors for find and replace, with user defined corresponding html code. The HTML code... (3 Replies)
Discussion started by: sudo
3 Replies
LEARN ABOUT SUSE
gtk2::alignment
Gtk2::Alignment(3) User Contributed Perl Documentation Gtk2::Alignment(3)
NAME
Gtk2::Alignment
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 : readable / writable / private)
The padding to insert at the bottom of the widget.
'left-padding' (Glib::UInt : readable / writable / private)
The padding to insert at the left of the widget.
'right-padding' (Glib::UInt : readable / writable / private)
The padding to insert at the right of the widget.
'top-padding' (Glib::UInt : readable / writable / private)
The padding to insert at the top of the widget.
'xalign' (Glib::Float : readable / writable / private)
Horizontal position of child in available space. 0.0 is left aligned, 1.0 is right aligned
'xscale' (Glib::Float : 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' (Glib::Float : readable / writable / private)
Vertical position of child in available space. 0.0 is top aligned, 1.0 is bottom aligned
'yscale' (Glib::Float : 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-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::Alignment(3)