Thank you,Corona688! One more question:
I have to change " < file > "to my real file name with path ( /usr/arch/suite.xml )
Should I change $$ in /tmp/$$ ?..
Sorry I just started to scripting and observe any information about.
Thank you again!
---------- Post updated at 09:47 AM ---------- Previous update was at 09:23 AM ----------
I found one more thing, from this thread:_https://www.unix.com/shell-programming-scripting/105016-search-string-file-extract-another-string-variable.html (since I don't have permission to publish URLs yet, I posted like that)
It looks like
Of cause it will work only for specific string,
and I still waiting for your advises, your code and idea I like better...
Thank you for your time and consideration!
I need a way to build variable in this manner:
variable_$i
Inside a for loop i need to create it.
where i goes from 1 to 30..
and then i need to print them on screen with echo $variable_$i
which is the best way to do this? (6 Replies)
Dear All,
I have a file with the syntax below (composed of several <log ..... </log> stanzas)
I need to search this file for a number e.g. 2348022225919, and if it is found in a stanza, copy the whole stanza/section (<log .... </log>) to another output file.
The numbers to search for are... (0 Replies)
Hi, guys. I have one question:
I need to search for a string in a file, and then extract another string from the file and assign it to a variable.
For example:
the contents of the file (group) is below:
...
ftp:x:23:
mail:x:34
...
testing:x:2001
sales:x:2002
development:x:2003
...... (6 Replies)
I tried awk for this, but failed <or my code is not correct? I dont know>. Can anyone help me on this?
---------- Post updated at 08:34 PM ---------- Previous update was at 08:29 PM ----------
my working file looks like this:
<empty>
<empty>
<empty>
NAME :ABC AGE :15
GENDER... (6 Replies)
Hello All,
How to concatenate a string to a variable in a script
I'm having a file which is consisting of data and i need to extract the first line of the file and append it to a string.
/tmp/samp.list containg 60000
I like to concatenate it with a string (SS_)
grep -w SS_$(head -1... (1 Reply)
hi,
In a given directory, i need to search for a string (eg:ABCD).
For a given file, i have to extract the text between START and END strings .
I need to extract all the text between START and END and there can be multiple START and END in a file.
Sample:
There is a directort... (3 Replies)
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Hi All,
I hope somebody would be able to help me.
I would need to search a string coming from a file, example file.txt:
dog
cat
goat
horse
fish
For every string, I would need to know if there are any files inside a directory(recursively) that contains the string regardless of case.... (9 Replies)
Discussion started by: kokoro
9 Replies
LEARN ABOUT DEBIAN
www::search::ebay::bysellerid
WWW::Search::Ebay::BySellerID(3pm) User Contributed Perl Documentation WWW::Search::Ebay::BySellerID(3pm)NAME
WWW::Search::Ebay::BySellerID - backend for searching eBay for items offered by a particular seller
SYNOPSIS
use WWW::Search;
my $oSearch = new WWW::Search('Ebay::BySellerID');
my $sQuery = WWW::Search::escape_query("martinthurn");
$oSearch->native_query($sQuery);
while (my $oResult = $oSearch->next_result())
{ print $oResult->url, "
"; }
DESCRIPTION
See WWW::Search::Ebay for details. The query string must be an eBay seller ID.
This class is an Ebay specialization of WWW::Search. It handles making and interpreting Ebay searches http://www.ebay.com.
This class exports no public interface; all interaction should be done through WWW::Search objects.
NOTES
Searches only for items offered by eBay sellers whose ID matches exactly.
See WWW::Search::Ebay for explanation of the results.
SEE ALSO
To make new back-ends, see WWW::Search.
BUGS
Please tell the author if you find any!
AUTHOR
Martin 'Kingpin' Thurn, "mthurn at cpan.org", <http://tinyurl.com/nn67z>.
LICENSE
Copyright (C) 1998-2009 Martin 'Kingpin' Thurn
perl v5.12.4 2011-11-02 WWW::Search::Ebay::BySellerID(3pm)