Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
I need to replace the character on 6th position. If this character is 1 I have to repleace it with A, if it is 2 than I have to replace it with B. If it is not 1 or 2 I should not repleace it.
input:
abcd defg
abcd 1efg
mnop weac
rstu 2bcd
i need:
abcd defg
abcd Aefg
mnop weac
rstu... (2 Replies)
Hello everyone this is my first post of many to come :)
I am writing a script and in this script at one point i need to replace a character in a particular position in a string for example:
in the string "mystery" i would need to replace the 3rd position to an "r" so the string becomes... (3 Replies)
Greetings.
I have a file with information like this:
AMNDHRKEOEU?AMNDHRKEOEU?AMNDHRKEOEU?AMNDHRKEOEU?
AMNDHRKEEU?AMNDHREOEU?
AMNDHREU?AHRKEOEU?AMNDHRKEU?AMNDKEOEU?
What I need to extract is the position, in every line, of every occurrence of '?'
A desired output would be something... (6 Replies)
Hi Guys!
Could anyone help me with?..
I have a line which says
BCVGF%6$#900 .....How can we know which position is for % or say $ by command or script?There is any way to get a prompt by any script?
Thanks a lot (6 Replies)
Hi guyz i want to know nth position of character in string. For ex.
var="UK,TK,HK,IND,AUS"
now if we see 1st occurance of , is at 3 position, 2nd at 6,..4th at 13 position.
1st position we can find through INDEX, but what about 2nd,3rd and 4th or may be upto nth position. ?
In oracle we had... (2 Replies)
Discussion started by: Jonty Immortal
2 Replies
9. Post Here to Contact Site Administrators and Moderators
In file, we have millions of records each of 1000 in length. And at specific position say 800 there is a space, we need to replace it with Character X if the ID in that row starts with 123.
So far i have used the below which is replacing space at that position to X but its not checking for... (3 Replies)
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT DEBIAN
gtk2::viewport
Gtk2::Viewport(3pm) User Contributed Perl Documentation Gtk2::Viewport(3pm)NAME
Gtk2::Viewport - wrapper for GtkViewport
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Widget
+----Gtk2::Container
+----Gtk2::Bin
+----Gtk2::Viewport
INTERFACES
Glib::Object::_Unregistered::AtkImplementorIface
Gtk2::Buildable
METHODS
widget = Gtk2::Viewport->new ($hadjustment=undef, $vadjustment=undef)
o $hadjustment (Gtk2::Adjustment or undef)
o $vadjustment (Gtk2::Adjustment or undef)
window or undef = $viewport->get_bin_window
Since: gtk+ 2.20
adjustment = $viewport->get_hadjustment
$viewport->set_hadjustment ($adjustment)
o $adjustment (Gtk2::Adjustment)
shadowtype = $viewport->get_shadow_type
$viewport->set_shadow_type ($type)
o $type (Gtk2::ShadowType)
adjustment = $viewport->get_vadjustment
$viewport->set_vadjustment ($adjustment)
o $adjustment (Gtk2::Adjustment)
window or undef = $viewport->get_view_window
Since: gtk+ 2.22
PROPERTIES
'hadjustment' (Gtk2::Adjustment : default undef : readable / writable / construct / private)
The GtkAdjustment that determines the values of the horizontal position for this viewport
'shadow-type' (Gtk2::ShadowType : default "in" : readable / writable / private)
Determines how the shadowed box around the viewport is drawn
'vadjustment' (Gtk2::Adjustment : default undef : readable / writable / construct / private)
The GtkAdjustment that determines the values of the vertical position for this viewport
SIGNALS
set-scroll-adjustments (Gtk2::Viewport, Gtk2::Adjustment, Gtk2::Adjustment)
ENUMS AND FLAGS
enum Gtk2::ShadowType
o 'none' / 'GTK_SHADOW_NONE'
o 'in' / 'GTK_SHADOW_IN'
o 'out' / 'GTK_SHADOW_OUT'
o 'etched-in' / 'GTK_SHADOW_ETCHED_IN'
o 'etched-out' / 'GTK_SHADOW_ETCHED_OUT'
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::Viewport(3pm)