10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
File 1
---------
N_ACCT,CARD_TYPE,CARD_BAL,CUST_CODE
---------------------------------------------------
0301,38,0.00,10
0319,38,54422.92,10
0392,38,0.00,10
0418,38,35254.87,10
0442,38,0.00,10
0491,38,0.00,10
0558,38,45988.76,10
0616,38,0.00,10
0665,38,0.00,10
0699,38,0.00,10
File 2... (3 Replies)
Discussion started by: suresh_target
3 Replies
2. Linux
I am getting some values from a file and putting them in an array..but the null strings are not getting passed to the array. So during printing the elements ,the null string is not showing in the output. during array size calculation it is also excluding null.Please let me know how to do it.
# cat... (2 Replies)
Discussion started by: millan
2 Replies
3. Shell Programming and Scripting
Hi,
I have a requirement.for eg: i have a text file with pipe symbol as delimiter(|) with 4 columns a,b,c,d. Here a and b are primary key columns..
i want to process that file to find the duplicates and null values are in primary key columns(a,b) . I want to write the unique records in which... (5 Replies)
Discussion started by: praveenraj.1991
5 Replies
4. Shell Programming and Scripting
hi Gurus,
I need find the null column in a file.
my file like below
abc, ,cde,def
abc,ded,cdd,def
abc, ,ddd,ccd
aaa,bbb,ccc,ddd
basic, I need to find the lines which second column is null
Thanks in advance (3 Replies)
Discussion started by: ken6503
3 Replies
5. Shell Programming and Scripting
i have an array (with each element length "n") which is dynamic and has alphanumeric characters.
i want to check if any of the elements of the array are null and replace it with a string of "n" zeros for that element.
can you suggest me a code for the same. (1 Reply)
Discussion started by: mumbaiguy07
1 Replies
6. Programming
Hello All,
I have this question that how to check for an array for NULL?
For eg.
#include<iostream.h>
using namespace std;
int main()
{
char arr;
if(arr == NULL)
{
cout<<"NULL";
}
}
Thanks a lott in advance!!! (3 Replies)
Discussion started by: mind@work
3 Replies
7. Shell Programming and Scripting
Hi, gurus,
I need remove lines in a file which contains null value in certain column
eg.
123, ,abc,def,cde
234,abc,cde,def
456,cde, ,bcd
in this file I need remove lines which second column contains null.
expected result:
234,abc,cde,def
456,cde, ,bcd
:wall:
Thanks in advance (2 Replies)
Discussion started by: ken002
2 Replies
8. Shell Programming and Scripting
Hi, everyone
I have a requirement as following:
source file
1, abc, def, caaa
2, , cde, aaa
3, bcd, , adefefg
I need find columns which contains null value, in above example,
I need get two rows
2, , cde, aaa
3, bcd, , adefefg
anybody has idea how to achive this
... (5 Replies)
Discussion started by: ken002
5 Replies
9. Shell Programming and Scripting
Hi All,
I have a table with 10 columns. Some columns(2nd,4th,5th,7th,8th and 10th) are Not Null columns. I'll get a tab-delimited file and want to check col by col and generate seperate error code for each col eg:102 if 2nd col value is NULL and 104 if 4th col value is NULL so on... I am a... (7 Replies)
Discussion started by: Mandab
7 Replies
10. Shell Programming and Scripting
I am having a "|" delimited flat file and I have to pick up all the records with the 2nd field having null value. Please suggest. (3 Replies)
Discussion started by: dsravan
3 Replies