07-01-2010
friend, your posts are bit too long.
just tell me what is your input and output.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to be able to list all the names in a file which begin with a capital letter, but I don't want it to list words that begin a new sentence. Is there any way round this?
Thanks for your help. (1 Reply)
Discussion started by: kev269
1 Replies
2. Shell Programming and Scripting
Hi All,
I am new to UNIX and shell scripts and also new to this forum.
I need a script to find all the files in a directory that contain any of the strings present in another file.
Please provide me the script or if you could provide pointers to any link in this forum it would be helpful.... (4 Replies)
Discussion started by: tsanthosh
4 Replies
3. Shell Programming and Scripting
hello,
i 'd like your help about a bash script which:
1. finds inside the html file (it is attached with my post) the code number of the Latest Stable Kernel,
2.finds the link which leads to the download location of the Latest Stable Kernel version,
(the right link should lead to the file... (3 Replies)
Discussion started by: alex83
3 Replies
4. Shell Programming and Scripting
Hello,
I have a complex problem. I have a file in which words have been joined together:
Theboy ranslowly
I want to be able to correctly split the words using a lookup file in which all the words occur:
the
boy
ran
slowly
slow
put
child
ly
The lookup file which is meant for look up... (21 Replies)
Discussion started by: gimley
21 Replies
5. Shell Programming and Scripting
Dear all,
I am working with names and I have a large file of names in which some words are written together (upto 4 or 5) and their corresponding single forms are also present in the word-list.
An example would make this clear
annamarie
mariechristine
johnsmith
johnjoseph smith
john
smith... (8 Replies)
Discussion started by: gimley
8 Replies
6. Shell Programming and Scripting
Hi all,
I have trouble in finding the multiple word in .txt file. Please help me with any solution.
I have 10,000 .txt files and in each file i have to search specific word but more than one, like
(data, machine learning, clustering) and all these keywords should be case insensitive because... (3 Replies)
Discussion started by: XXLMMN
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a requirement like i have to find out files and remove them on a daily basis.
The files are generated as
abc_jnfn_201404230004.csv
abc_jnfo_201404230004.csv
abc_jnfp_201404230004.csv
abc_jnfq_201404230004.csv
abd_jnfn_201404220004.csv
abe_jnfn_201404220004.csv
i want to... (1 Reply)
Discussion started by: Mohammed_Tabish
1 Replies
8. Shell Programming and Scripting
Hi ,
I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Discussion started by: jmarx
1 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I would like to change my setting in a file to the setting that user input.
For example, by default it is
ONBOOT=ON
When user key in "YES", it would be
ONBOOT=YES
--------------
This code only adds in the entire user input, but didn't replace it.
How do i go about... (5 Replies)
Discussion started by: malfolozy
5 Replies
10. Shell Programming and Scripting
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT DEBIAN
zipios_referencecount
zipios::ReferenceCount(3) Library Functions Manual zipios::ReferenceCount(3)
NAME
zipios::ReferenceCount -
ReferenceCount is useful to ensure proper handling of the reference count for (objects of) classes handled through a SimpleSmartPointer.
SYNOPSIS
#include <simplesmartptr.h>
Public Member Functions
ReferenceCount ()
Constructor intializes count to zero.
ReferenceCount (const ReferenceCount &src)
Copy-constructor intializes count to zero.
const ReferenceCount & operator= (const ReferenceCount &src)
The assignment operator doesn't copy the reference count, it leaves it unchanged.
Friends
class SimpleSmartPointer< Type >
SimpleSmartPointer needs to be a friend to invoke the private ref() and unref() methods.
class SimpleSmartPointer< const Type >
class FileEntry
Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit ReferenceCount and
thus needs to invoke ref() and unref() through forwarding member functions.
class Bogus
Detailed Description
template<class Type>class zipios::ReferenceCount< Type >
ReferenceCount is useful to ensure proper handling of the reference count for (objects of) classes handled through a SimpleSmartPointer.
Subclassing ReferenceCount is all a class needs to become ready for being handled by SimpleSmartPointer. Another way is to add a
ReferenceCount member variable to a class and write two methods 'void ref() const' and 'unsigned int unref() const' that invoke the same
methods in the ReferenceCount variable.
Definition at line 99 of file simplesmartptr.h.
Constructor & Destructor Documentation
template<class Type> zipios::ReferenceCount< Type >::ReferenceCount () [inline]
Constructor intializes count to zero.
Definition at line 122 of file simplesmartptr.h.
template<class Type> zipios::ReferenceCount< Type >::ReferenceCount (const ReferenceCount< Type > &src) [inline]
Copy-constructor intializes count to zero. It doesn't copy it from src.
Definition at line 126 of file simplesmartptr.h.
Member Function Documentation
template<class Type> const ReferenceCount& zipios::ReferenceCount< Type >::operator= (const ReferenceCount< Type > &src) [inline]
The assignment operator doesn't copy the reference count, it leaves it unchanged.
Definition at line 130 of file simplesmartptr.h.
Friends And Related Function Documentation
template<class Type> friend class FileEntry [friend]
Type also needs to be a friend to invoke the private ref() and unref() methods, in case Type doesn't want to inherit ReferenceCount and
thus needs to invoke ref() and unref() through forwarding member functions.
Definition at line 117 of file simplesmartptr.h.
template<class Type> friend class SimpleSmartPointer< Type > [friend]
SimpleSmartPointer needs to be a friend to invoke the private ref() and unref() methods.
Definition at line 102 of file simplesmartptr.h.
Author
Generated automatically by Doxygen for Zipios++ from the source code.
Zipios++ Mon Oct 10 2011 zipios::ReferenceCount(3)