Why that complicated? Try
It will read the val and csv files and put their values into respective arrays, and then pick any data*.text file around and convert it into a "new" one. If you want to restrict the file selection to 1 .. 31 but skip non-exististing ones, try using shell patterns. You may need to adapt the field separator FS.
Hello,
I would like to perform a search of several different strings in different files. I have the ouput of a unix command X which is for instance:
aaa
bbb
ccc
and I would like to look for each of these three strings into several files: file1 file2 etc.
I have come up with a solution... (2 Replies)
Hi,
filenames:
contains name of list of files to search in.
placelist
contains the names of places to be searched in all files in "filenames"
for i in $(<filenames)
do
egrep -f placelist $i
if ]
then
echo $i
fi
done >> outputfile
Output i am getting: (0 Replies)
Hi,
I need to replace the string 'abcd' with 'xyz' in a file sample.xml
This sample.xml is also present in the subdirectories of the current directory.
Eg,
If I am in /user/home/
the sample.xml if present in
/user/home/
/user/home/folder1/
/user/home/folder2/... (3 Replies)
Hi,
I have many files scattered in all different folders. I want to replace the text within all the files using a single command ( awk, sed...) Is it possible?
example
find all the files in which there is text "memory" and replace it with "branded_memories".
the files can be at the... (2 Replies)
Hi guys,
say I have a few files in a directory (58 text files or somthing)
each one contains mulitple strings that I wish to replace with other strings
so in these 58 files I'm looking for say the following strings:
JAM (replace with BUTTER)
BREAD (replace with CRACKER)
SCOOP (replace... (19 Replies)
Hi,
I have to write one script that has to search a list of numbers in certain zipped files.
For eg. one file file1.txt contains the numbers. File1.txt contains 5,00,000 numbers and I have to search each number in zipped files(The number of zipped files are around 1000 each file is 5 MB)
I have... (10 Replies)
I have a list of files all over a file system e.g.
/home/1/foo/bar.x
/www/sites/moose/foo.txtI'm looking for strings in these files and want to replace each occurrence with a replacement string, e.g.
if I find: '#@!^\&@ in any of the files I want to replace it with: 655#@11, etc.
There... (2 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
I have requirement to replace old TNS entries with New one in multiple files.
one file may contain more then one occurrence of tns.
Example: Below is the one of occurrence in a current file(s). i am interested to replace only red part.
<connection-pool name="Google_APP_CP"... (4 Replies)
I have 4000 files like
$cat clus_grp_seq10_g.phy
18 1002
anig_OJJ65951_1 ATGGTTTCGCAGCGTGATAGAGAATTGTTTAGGGATGATATTCGCTCGCGAGGAACGAAGCTCAATGCTGCCGAGCGCGAGAGTCTGCTAAGGCCATATCTGCCAGATCCGTCTGACCTTCCACGCAGGCCACTTCAGCGGCGCAAGAAGGTTCCTCG
aver_OOF92921_1 ... (1 Reply)
Discussion started by: sammy777888
1 Replies
LEARN ABOUT DEBIAN
net::trac::ticketsearch
Net::Trac::TicketSearch(3pm) User Contributed Perl Documentation Net::Trac::TicketSearch(3pm)NAME
Net::Trac::TicketSearch - A ticket search (custom query) in Trac
SYNOPSIS
my $search = Net::Trac::TicketSearch->new( connection => $trac );
$search->query(
owner => 'hiro',
status => { 'not' => [qw(new reopened)] },
summary => { 'contains' => 'yatta!' },
reporter => [qw( foo@example.com bar@example.com )]
);
print $_->id, "
" for @{$search->results};
DESCRIPTION
This class allows you to run ticket searches on a remote Trac instance.
ACCESSORS
connection
limit [NUMBER]
Get/set the maximum number of results to fetch. Default is 500. This may also be limited by the Trac instance itself.
results
Returns an arrayref of Net::Trac::Tickets for the current query.
url
Returns the relative URL for the current query (note the format will be CSV).
METHODS
query [PARAMHASH]
Performs a ticket search with the given search conditions. Specify a hash of "column =" value> pairs for which to search. Values may be a
simple scalar, a hashref, or an arrayref. Specifying a hashref allows you to select a different operator for comparison (see below for a
list). An arrayref allows multiple values to be or'd for the same column. Unfortunately Trac has no way of anding multiple values for the
same column.
Valid operators are "is" (default), "not", "contains", "lacks", "startswith", and "endswith".
Returns undef on error and the results otherwise.
LICENSE
Copyright 2008-2009 Best Practical Solutions.
This package is licensed under the same terms as Perl 5.8.8.
perl v5.12.3 2009-05-27 Net::Trac::TicketSearch(3pm)