01-02-2008
charecter or number
Hi Friends,
How to check a variable value is either charecter or number?
With Regards / Ganapati
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
My file looks like
abc$%sdfhs$%sdf$%sdfaf$%
here as seen delimiter is $%...now how cas i take out second field as cut command expect delimiter as single charecter only.....is there is any other way
thanks and regards
mahabunta (9 Replies)
Discussion started by: mahabunta
9 Replies
2. Shell Programming and Scripting
I wannt to cut first char of any string.
str=A2465443
out put will be.
str1=A
str2=2465443.
I tried
str2=${?%srt}
str1=${str#$str2}
it is not working. (6 Replies)
Discussion started by: rinku
6 Replies
3. Shell Programming and Scripting
Hi...
I have a requrement to compare two files.
for e.g.
File 1
2007/08/19 09:48:10 DH-032 $APTA1: Device AATD8029
2007/08/19 09:48:10 DH-045 $APTA1: Device AATD8029
2007/08/19 09:48:10 DH-043 $APTA1: Device AATD8029
File 2
2007-08-19 09:48:10 DH-032... (1 Reply)
Discussion started by: evvander
1 Replies
4. Shell Programming and Scripting
how could find charecter from its ascii value.
please suggest me any code for that.
thannks in advance. (2 Replies)
Discussion started by: rinku
2 Replies
5. Shell Programming and Scripting
Hi,
I have file which is having the following content.
11082202^M
10951265^M
11482003^M
12820986^M
11309561^M
11092815^M
11103308^M
13024722^M
11343958^M
11280355^M
7516723^M
i want to delete the last charecter "^M" from all the line and redirect to other line.
Please help... (1 Reply)
Discussion started by: shivanete
1 Replies
6. Shell Programming and Scripting
Hi,
Using perl, how can I delete a charecter (specify the position number), in a line which starts with "GETR P" and another line starting with "GET P:=". This needs tro be done for many charecters in a line
Thanks
Vijayalakshmi (2 Replies)
Discussion started by: abc_81
2 Replies
7. UNIX for Dummies Questions & Answers
Hi All,
I am having a file with the delimiter '|^'.
File name:test_dlim.csv
I want to cut the first field of this using awk command.
I tried with the help of the following link:... (2 Replies)
Discussion started by: boopathyvasagam
2 Replies
8. Shell Programming and Scripting
I have a unix shell script generate.sh that writes to a file hello.txt using redirect.
For example:echo " Today's report shows progress by: " > hello.txt
This hello.txt is then send as an email body to the recipients.
My requirement is to have this special characters(up arrow and down arrow... (6 Replies)
Discussion started by: mohtashims
6 Replies
9. Shell Programming and Scripting
I have a sample server name listed in variable as below:
var="server-13"
I need to check if the 7th character on $var is number 1
whichenv=`echo "$var"| head -c 7 | tail -c 1`
if ]; then
echo "9 found"
else
echo "9 Not Found"
fi
Output:
This works... (3 Replies)
Discussion started by: mohtashims
3 Replies
10. UNIX for Beginners Questions & Answers
Hi, I have collection of letters in a column such as:
AA5678
AA9873434
..
..
I am trying to find the number of charecters in each.
"echo "AA5678"|wc -c
7----------------> why does it give 7 instead of 6? (6 Replies)
Discussion started by: kvosu
6 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)