09-26-2009
Yes, thanks for pointing that out.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to define a variable named sin
I already have a variable named cos, which has the value "hello"
I want sin to have the value of "hellothere",
so sin would be something like
sin = $cos & "there"
but I'm not sure that I know the syntax.
Can anyone help?
:confused: (4 Replies)
Discussion started by: sailorliones
4 Replies
2. AIX
I've got a modified samba script (named it winprint) that I can use to print out to a to a shared Win Network printer from an AIX machine. This is a modification of the samba provided smbprint script changed to work under AIX as the backend for a queue. It does not read a config file
I can print... (0 Replies)
Discussion started by: matheeq
0 Replies
3. Shell Programming and Scripting
Hey all, I was wondering if someone would take a look at this script I'm working on. I don't know if i have the syntax correct for my variables and if the for loop is written correctly.
any assistance would be greatly appreciated.
#!/usr/bin/bash
###########################################... (12 Replies)
Discussion started by: em23
12 Replies
4. Programming
Question regarding extend issue
What is the reason behind defining the inputStream object in this way...
InputStream inputStream = new FileInputStream("c:\\input.txt");
I know that FileInputStream extends InputStream, is there anything else ?
I mean we could have define it like ... (0 Replies)
Discussion started by: yahyaaa
0 Replies
5. UNIX for Dummies Questions & Answers
I have defined this alias as quick way to find out which mount point to use for a USB drive after inserting it:
# alias da='dmesg | grep da | grep MB'
However, when invoking it, it states the following:
# da
da: Command not found.
Can someone explain what is the issue here and how it can be... (3 Replies)
Discussion started by: figaro
3 Replies
6. UNIX for Dummies Questions & Answers
Hi All,
I have a trivial question but I dont know how to solve it.
So basically I'm working on a USB key and I have a directory with some scripts which I use to work on files present in other directories within the USB or sometimes on the main harddisk too. The problem is every time I have to... (3 Replies)
Discussion started by: pawannoel
3 Replies
7. Programming
I have the following code and getting the compilation errors
baseLib/DynBaseObj.h:80: error: expected constructor, destructor, or type conversion before ‘(' token
baseLib/DynBaseObj.h:89: error: expected constructor, destructor, or type conversion before ‘(' token
baseLib/DynBaseObj.h:101:... (0 Replies)
Discussion started by: kristinu
0 Replies
8. Shell Programming and Scripting
Hi Friends,
I am newbie to shell programming and I am stuck trying to accomplish following task.We use Bamboo CI which executes script1 passing parameters. This Main script executes script2 as backend process as part of one of it statements. Task of script2 is to essentially check whether a... (0 Replies)
Discussion started by: aditya206
0 Replies
9. UNIX for Dummies Questions & Answers
Hi
I'd say I'm having this weird problem where my script isn't taking the value off a variable or printing it. My code is like this:
set count_C= `grep -c C mols`
set count_H= `grep -c H mols`
set count_O= `grep -c O mols`
sed -i '7,7 s/$/ $count_C $count_O $count_H/g' input It... (8 Replies)
Discussion started by: saleheen
8 Replies
LEARN ABOUT DEBIAN
search::xapian::database
Xapian::Database(3pm) User Contributed Perl Documentation Xapian::Database(3pm)
NAME
Search::Xapian::Database - Search database object
DESCRIPTION
This class represents a Xapian database for searching. See Search::Xapian::WritableDatabase for an object suitable for indexing. To
perform searches, this class works with the Search::Xapian::Query object.
METHODS
new <database>
Class constructor. Can either take a path to an existing database or another database class as the first parameter
clone
Return a clone of this class.
add_database
Add an existing database (or group of databases) to those accessed by this object.
reopen
This re-opens the database(s) to the latest available version(s). It can be used either to make sure the latest results are returned,
or to recover from a Xapian::DatabaseModifiedError.
close
Close the database. This also implies a commit() unless a transaction is in progress.
enquire [<query>]
Returns a new Search::Xapian::Enquire object. Any extra parameters are passed to set_query.
get_doccount
Returns the number of document indexed in this database.
get_lastdocid
Returns the id of the last used document.
get_doclength <doc_id>
Returns the length of a given document.
get_document <doc_id>
Returns a Search::Xapian::Document object for the given document.
get_avlength
Get the average length of the documents in the database.
get_termfreq <term>
Get the number of documents in the database indexed by a given term.
term_exists <term>
returns true if this term exists in the database, or false otherwise.
get_description
return a description of this object.
get_spelling_suggestion
returns a suggested spelling correction.
allterms_begin [<prefix>]
Returns a Search::Xapian::TermIterator iterating over the termlist for the the entire database. If the optional prefix argument is
non-empty, only terms starting with that string are returned.
allterms_end [<prefix>]
Returns a Search::Xapian::TermIterator pointing to the end of the termlist corresponding to allterms_begin.
termlist_begin <docid>
Returns a Search::Xapian::TermIterator pointing to the start of the termlist for a given document.
termlist_end <docid>
Returns a Search::Xapian::TermIterator pointing to the end of the termlist for a given document.
positionlist_begin <docid> <term>
Returns a Search::Xapian::PositionIterator pointing to the start of the position list for a given term in the given document.
positionlist_end <docid> <term>
Returns a Search::Xapian::PositionIterator pointing to the end of the position list for a given term in the given document.
postlist_begin <term>
Returns a Search::Xapian::PostingIterator pointing to the start of the posting list for a given term.
postlist_end <term>
Returns a Search::Xapian::PostingIterator pointing to the end of the posting list for a given term.
keep_alive
Send a "keep-alive" to remote databases to stop them timing out.
get_collection_freq <term>
Get the number of elements indexed by a certain term.
SEE ALSO
Search::Xapian,Search::Xapian::Enquire,Search::Xapian::WritableDatabase
perl v5.14.2 2012-05-09 Xapian::Database(3pm)