06-27-2013
thanks a lot friend..!! it worked for me..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need some help.
Shell script counter. i need to add condition to check if counter is more than 10 and longer than 3 hours? it runs every 5 mins. it only check count and send email right now.
it runs in cron as below
gregcount.ksh gregdb 10 > /tmp/gregcount.out 2> /tmp/gregcount.err
... (1 Reply)
Discussion started by: pega
1 Replies
2. Shell Programming and Scripting
Hi,
I have such an example(ksh):
name1=Example
directory=/directory1/Example/directory2
match=$(grep -s '$name1' $directory | wc -l)
echo $match
But it replies to me:
0
What I expect from it, is to find $name1 in $directory and produce 1 for me as true, not false. (3 Replies)
Discussion started by: chish
3 Replies
3. UNIX for Dummies Questions & Answers
Dear all,
I have numerous dat files (a.dat, b.dat...) containing 500 numeric values each. I would like to count them, based on their range and obtain a histogram or a counter.
INPUT:
a.dat
1.3
2.16
0.34
......
b.dat
1.54
0.94
3.13
.....
... (2 Replies)
Discussion started by: chen.xiao.po
2 Replies
4. Shell Programming and Scripting
cat sport_by_month
Month : Jan
sport :Football
sport :Volleyball
Month: Feb
sport :BasketBall
sport: Cricket
sport: Fotball
Month: Mar
Month: APR
sport : Bowling
sport : Climbing
I need your help to have a script that count the number of sports per month and sorted by mont with... (7 Replies)
Discussion started by: Sara_84
7 Replies
5. Shell Programming and Scripting
i having a file
xxxxxxxxxxxxxxx1234 ...........value can be change
xxxxxxxxxxxxxxx1235
xxxxxxxxxxxxxxxx1236
.
.
.
.
xxxxxxxxxxxxxxxxx1300 ...........value can be change
i want to cut last four characters of first line and last line and find the missing pattern.
output should... (4 Replies)
Discussion started by: sagar_1986
4 Replies
6. Shell Programming and Scripting
if ;then
echo "mrnet greater 5000"
gzip /var/log/mrnet.log
mv /var/log/mrnet.log.gz /var/log/mrnet.log.1.gz
if ];then
i=1
let i++
mv /var/log/mrnet.log.1.gz /var/log/vieux-logs/mrnet.log.$i.gz
else
echo "theres no... (1 Reply)
Discussion started by: Froob
1 Replies
7. Shell Programming and Scripting
I have this file
1801,A1,2012-12-16 15:59:59.995,id2_3,ab,phoneC2-00,VOE,,,,,,,,,,,,,,,
1802,A1,2012-12-16 15:59:59.995,id2_3,ab=,phoneX1-01,BL,,,,,,,,,,,,,,,
1803,A1,2012-12-16 15:59:59.995,id2_3,ab,phone300,BL,,,,,,,,,,,,,,,
1804,A1,2012-12-16... (4 Replies)
Discussion started by: nikhil jain
4 Replies
8. Shell Programming and Scripting
For the following code
SEQ=200
awk -v S="$SEQ" '
$0 ~ S {
N++
print N
}
' "$1"ascii >"$1"search
N is printed 8002 times as it occurred 8002 times in file
how I could print the counter one time only (20 Replies)
Discussion started by: khaled79
20 Replies
9. Shell Programming and Scripting
hello
this script should show all users and space they used without problem :
ls /home >> /root/users.txt
cat /root/users.txt | while read line; do
space=`du -s /home/$line`
echo "$line space is $space"
shift
done
but when i remove pipe ,script run without any output:
ls /home... (4 Replies)
Discussion started by: nimafire
4 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)