Hi folks,
I need to search and replace specific text in a file and replace it. I have a text file that does not have any newlines or carriage returns. All newlines have been removed. Here is what I need to do.
Find the exact string “DH” (quotes included) and replace it with \n”DH” (basically... (6 Replies)
Hello Folks,
Anyone know how I can replace this line in file.xml
<oacore_nprocs oa_var="s_oacore_nprocs">8</oacore_nprocs>
with this line
<oacore_nprocs oa_var="s_oacore_nprocs">1</oacore_nprocs>
using sed or awk ?
Thanks for your time.
Cheers,
Dave (7 Replies)
Is there a way to use the sed command to
1) search a specified pattern
2) in the line where that pattern is found, replace from character N to character N+4 with a new 4-character string.
Thks in advance! (5 Replies)
Hi,
The following code loops through every file with an error extension and then loops through all XML files in that directory and replaces the target character @ with / . The problem I have is that if there is more than one occurance of @ in each individual file it doesn't replace it. Any... (2 Replies)
hi,
im new for sed, anyone can help me to these in sed command
my output file.txt
"aaa",a1,bbb
"ddd",a1,ccc
"eee",a1,www
need to change a1, to "a1","
output i need
"aaa","a1","bbb
"ddd","a1","ccc
"eee","a1","www
thanks in advance
fsp (2 Replies)
Hello -
I have a very large file in which a certain numbers are repeated. I find that using vi to edit the entire file is useless.
How should i use sed to find a replace such as this text:
To replace: 145.D25.D558
With: 215.22.45.DW
I tried this command:
sed... (4 Replies)
Hi everyone,
basically I am been cleaning data by using simple sed commands
So what i have below has been working for me.
sed 's/="//g' trade.csv > tradeb.csv
sed 's/"//g' tradeb.csv > trade2.csv
but now i don't want to remove all the quotes just the ones if i encounter this ... (1 Reply)
Hi All
I have a simple text file and I want to be able to replace any alpha character and comma combination with any other symbol of my choice
here is the text file I want to replace:
pear
apple
ban,ana
grape
",g1234,"
te,st1
here is how it should look afterwards:
pear... (4 Replies)
Hi guys, thanks for accepting me in your forum .. I am trying to clean some hacked PHP files using SSH .. I am using this command:
find . -type f -print0 | xargs -0 sed -i '/god_mod/d'
<?php ... (3 Replies)
I have one big file of size 9GB (big_file.txt). This big file has sentences and paragraphs like any usual English document. I have another file consisting of replacement strings for sed to use. The file name is replace.sed and each entry in one line looks like this:
s/\<shout\>/shout/g
s/\<b is... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
LEARN ABOUT SUSE
gtk2::adjustment
Gtk2::Adjustment(3) User Contributed Perl Documentation Gtk2::Adjustment(3)NAME
Gtk2::Adjustment
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::Adjustment
METHODS
object = Gtk2::Adjustment->new ($value, $lower, $upper, $step_increment, $page_increment, $page_size)
o $value (double)
o $lower (double)
o $upper (double)
o $step_increment (double)
o $page_increment (double)
o $page_size (double)
$adjustment->changed
$adjustment->clamp_page ($lower, $upper)
o $lower (double)
o $upper (double)
double = $adjustment->value
double = $adjustment->value ($newval)
double = $adjustment->lower
double = $adjustment->lower ($newval)
double = $adjustment->upper
double = $adjustment->upper ($newval)
double = $adjustment->step_increment
double = $adjustment->step_increment ($newval)
double = $adjustment->page_increment
double = $adjustment->page_increment ($newval)
double = $adjustment->page_size
double = $adjustment->page_size ($newval)
o $newval (double)
Get or set the six fields of a Gtk2::Adjustment.
The setter functions store $newval and return the old value. Note that they don't emit any signals; it's up to you to emit "notify"
(because the fields are also properties) and "changed" or "value-changed", when you're ready.
$adjustment->value_changed
double = $adjustment->get_value
$adjustment->set_value ($value)
o $value (double)
PROPERTIES
'lower' (double : readable / writable / private)
The minimum value of the adjustment
'page-increment' (double : readable / writable / private)
The page increment of the adjustment
'page-size' (double : readable / writable / private)
The page size of the adjustment
'step-increment' (double : readable / writable / private)
The step increment of the adjustment
'upper' (double : readable / writable / private)
The maximum value of the adjustment
'value' (double : readable / writable / private)
The value of the adjustment
SIGNALS
changed (Gtk2::Adjustment)
value-changed (Gtk2::Adjustment)
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::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::Adjustment(3)