Dear mates,
imagine a table with only one column and 10 rows containing 5 yahoo.de and 5 gmail.com email addressess.
How could I replace only the "yahoo.de" part to "yahoo.com"? Is it even possible?
Kind regards,
pseudocoder
EDIT: btw. I'm not sure if this is the right forum sub-category. Please feel free to move this thread in a more appropriate category if there is any.
Last edited by pseudocoder; 12-16-2010 at 10:29 AM..
Hi All,
I spent the whole morning trying to create a shell script ( using "sed" command ) that looks for a value in a directory and its sub directory than changes it with another value but couldn't find the way :(
a first step, allowded me to trace all the files that contain it and even... (2 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
7. Post Here to Contact Site Administrators and Moderators
Majority of the questions are pertaining file/string parsing w.r.t
sed
or
awk
It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Hello All,
I have something like below
LDC100/rel/prod/libinactrl.a
LAA2000/rel/prod/libinactrl.a
I want to remove till first forward slash that is outputshould be as below
rel/prod/libinactrl.a
rel/prod/libinactrl.a
How can I do that ??? (8 Replies)
Hi Experts,
I have a string with colon delimited, want 2nd colon to be changed to a pipe.
data:
101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:
I am trying with sed, but can change only 1 occurance:
echo "101:8:43:4:72:14:41:69:85:3:137:4:3:0:4:0:9:3:0:3:12:3:" | sed 's/:/|/2'... (5 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
LEARN ABOUT SUSE
finance::quote::yahoo::nz
Finance::Quote::Yahoo::NZ(3) User Contributed Perl Documentation Finance::Quote::Yahoo::NZ(3)NAME
Finance::Quote::Yahoo::NZ - Fetch nzn stock quotes via Yahoo.
SYNOPSIS
use Finance::Quote;
my $q = Finance::Quote->new;
my %info = $q->fetch("yahoo_nz","DPC"); # Use this module only.
my %info = $q->fetch("nz","DPC"); # Failover with other methods.
DESCRIPTION
This module allows information to be fetched from Yahoo about stocks traded on the New Zealand Stock Exchange. Information about indexes
is not available through this module.
This module is loaded by default on a Finance::Quote object, although it can be explicitly loaded by passing the argument "Yahoo::nz" to
Finance::Quote->new().
This module provides only the "yahoo_nz" fetch methods. The author (stephen@vital.org.nz) will write a module to access the NZX site if
asked nicely.
Information obtained via this module is governed by Yahoo's terms and conditions, see http://au.finance.yahoo.com/ for more details.
LABELS RETURNED
This module returns all the standard labels (where available) provided by Yahoo, as well as the currency label. See
Finance::Quote::Yahoo::Base for more information.
SEE ALSO
Yahoo Australia, http://au.finance.yahoo.com/
Finance::Quote::Yahoo::Base
perl v5.12.1 2009-10-05 Finance::Quote::Yahoo::NZ(3)