Sponsored Content
Top Forums Shell Programming and Scripting comparing the null values in the unix Post 302166127 by bbc17484 on Monday 11th of February 2008 04:18:43 AM
Old 02-11-2008
comparing the null values in the unix

hi all,

iam new to this forum.i have to submit the script EOD.so please help me.

my requirement is to compare two null values..iam trying to compare two null values :One null value output of the storedprocedure and another iam giving spaces in script.

it is giving the error
DTLTRD_VALD_ACCT_CW_FILE.sh: line 215: [: =: unary operator expected

Thanx in Advance.
Chandu.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

handling null values in files

Hi , I have a script where i will remove header and trailer record and ftp to another server. I'm using the code: latestfilename=`ls filename_* | tail -1` echo "Latest filename = $latestfilename" sed '1d;$d' $latestfilename > a.ftpedfile I have an issue if input data is having null... (1 Reply)
Discussion started by: ammu
1 Replies

2. Shell Programming and Scripting

identifying null values in a file

I have a huge file with 20 fileds in each record and each field is seperated by "|". If i want to get all the reocrds that have 18th or for that matter any filed as null how can i do it? Please let me know (3 Replies)
Discussion started by: dsravan
3 Replies

3. UNIX for Dummies Questions & Answers

Check for null values in a column

Hi All, I have a file with 10 columns and get the required data for nine columns properly except 8th. In 8th column i have both NULL and NON NULL values...i.e certain records have values for all the columns including 8th column and certain records have 8th column as NULL.My requisite is,without... (20 Replies)
Discussion started by: ganesh_248
20 Replies

4. UNIX for Advanced & Expert Users

How to Compare Null values??

Hi, Can someone help me comparing Null values. Scenario is as follows: I have a variable which "cache_prd" which can have either some integer or nothing(Null) if it is integer I have to again do some comparision but these comparisons give me this error:( "line 32: [: 95: unary operator... (3 Replies)
Discussion started by: Yagami
3 Replies

5. Shell Programming and Scripting

sorting null values

Hi I have a file with the values abc res set kls lmn ops i want to sort this file with the null values at the bottom of the file OUTPUT should look like this abc kls lmn ops (6 Replies)
Discussion started by: vickyhere
6 Replies

6. Shell Programming and Scripting

How to use sort with null values?

Hello everyone I am doing a join command. Obviously, before I need two files sorted first. ( Both files have headers and have about 2 million lines each one ) The problem is, one of the files has null values in the key to sort (which is the first filed ). For example I have the original... (4 Replies)
Discussion started by: viktor1985
4 Replies

7. Shell Programming and Scripting

Check for null values in columns

Hi , I have below data with fixed with of 52 bytes having three columns value data. 01930 MA GLOUCESTER 02033 02025 COHASSET 01960 MA ... (3 Replies)
Discussion started by: sonu_pal
3 Replies

8. Shell Programming and Scripting

Handle null values-awk

I am using below code to validate the source file,code working fine but if any column contains null value then below code throwing error actually it should not.how to customize the below code to handle null null values also. When I run the script with below source data getting “date error”, as... (2 Replies)
Discussion started by: srivalli
2 Replies

9. Shell Programming and Scripting

Check null values column

hi, I had a small question.I had a file from which i need to extract data. I have written the below script to check if the file exists and if it exists extract requierd columns from the file. IFILE=/home/home01/Report_1.csv OFILE=/home/home01/name.csv.out1 if #Checks if file exists... (1 Reply)
Discussion started by: Vivekit82
1 Replies

10. Shell Programming and Scripting

Replace null values in csv with zero

Hi, i have another issue: i have three files: FILE 1 ServiceEventHandler, Processed,Percentage 5285337,100% FILE 2 Wallet, Processed,Percentage 5285337,100% (1 Reply)
Discussion started by: reignangel2003
1 Replies
std::sub_match< _BiIter >(3)				     Library Functions Manual				      std::sub_match< _BiIter >(3)

NAME
std::sub_match< _BiIter > - SYNOPSIS
Inherits std::pair< _BiIter, _BiIter >. Public Types typedef __iter_traits::difference_type difference_type" typedef _BiIter first_type typedef _BiIter iterator typedef _BiIter second_type typedef std::basic_string < value_type > string_type" typedef __iter_traits::value_type value_type Public Member Functions int compare (const sub_match &__s) const int compare (const string_type &__s) const int compare (const value_type *__s) const difference_type length () const void && noexcept (swap(second, __p.second))) operator string_type () const string_type str () const Public Attributes _BiIter first bool matched _BiIter second Detailed Description template<typename _BiIter>class std::sub_match< _BiIter > A sequence of characters matched by a particular marked sub-expression. An object of this class is essentially a pair of iterators marking a matched subexpression within a regular expression pattern match. Such objects can be converted to and compared with std::basic_string objects of a similar base character type as the pattern matched by the regular expression. The iterators that make up the pair are the usual half-open interval referencing the actual original pattern matched. Definition at line 741 of file regex.h. Member Typedef Documentation typedef _BiIter std::pair< _BiIter , _BiIter >::second_type [inherited] first_type is the first bound type Definition at line 99 of file stl_pair.h. Member Function Documentation template<typename _BiIter> int std::sub_match< _BiIter >::compare (const sub_match< _BiIter > &__s) const [inline] Compares this and another matched sequence. Parameters: __s Another matched sequence to compare to this one. Return values: <0 this matched sequence will collate before __s. =0 this matched sequence is equivalent to __s. <0 this matched sequence will collate after __s. Definition at line 802 of file regex.h. Referenced by std::operator!=(), std::operator<(), std::operator<=(), std::operator==(), std::operator>(), and std::operator>=(). template<typename _BiIter> int std::sub_match< _BiIter >::compare (const string_type &__s) const [inline] Compares this sub_match to a string. Parameters: __s A string to compare to this sub_match. Return values: <0 this matched sequence will collate before __s. =0 this matched sequence is equivalent to __s. <0 this matched sequence will collate after __s. Definition at line 815 of file regex.h. template<typename _BiIter> int std::sub_match< _BiIter >::compare (const value_type *__s) const [inline] Compares this sub_match to a C-style string. Parameters: __s A C-style string to compare to this sub_match. Return values: <0 this matched sequence will collate before __s. =0 this matched sequence is equivalent to __s. <0 this matched sequence will collate after __s. Definition at line 828 of file regex.h. template<typename _BiIter> difference_type std::sub_match< _BiIter >::length () const [inline] Gets the length of the matching sequence. Definition at line 759 of file regex.h. template<typename _BiIter> std::sub_match< _BiIter >::operator string_type () const [inline] Gets the matching sequence as a string. Returns: the matching sequence as a string. This is the implicit conversion operator. It is identical to the str() member function except that it will want to pop up in unexpected places and cause a great deal of confusion and cursing from the unwary. Definition at line 772 of file regex.h. template<typename _BiIter> string_type std::sub_match< _BiIter >::str () const [inline] Gets the matching sequence as a string. Returns: the matching sequence as a string. Definition at line 785 of file regex.h. Referenced by std::sub_match< _Bi_iter >::compare(), and std::operator<<(). Member Data Documentation _BiIter std::pair< _BiIter , _BiIter >::first [inherited] second_type is the second bound type Definition at line 101 of file stl_pair.h. Referenced by std::sub_match< _Bi_iter >::length(), std::sub_match< _Bi_iter >::operator string_type(), and std::sub_match< _Bi_iter >::str(). _BiIter std::pair< _BiIter , _BiIter >::second [inherited] first is a copy of the first object Definition at line 102 of file stl_pair.h. Referenced by std::sub_match< _Bi_iter >::length(), std::sub_match< _Bi_iter >::operator string_type(), and std::sub_match< _Bi_iter >::str(). Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 std::sub_match< _BiIter >(3)
All times are GMT -4. The time now is 10:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy