![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cat /dev/null | freakydancer | UNIX for Dummies Questions & Answers | 4 | 09-10-2008 03:34 PM |
| How to compare null and space using single if condition | jayakumarrt | UNIX for Dummies Questions & Answers | 3 | 05-16-2008 05:13 AM |
| > /dev/null | rrs | Shell Programming and Scripting | 2 | 06-19-2006 04:29 AM |
| Null Value | Khoomfire | UNIX for Advanced & Expert Users | 1 | 04-10-2006 09:55 AM |
| Q1 :/dev/null Q2 -A | big123456 | UNIX for Advanced & Expert Users | 4 | 11-10-2005 02:16 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
Here is a sample data:
"","","SGP0000","Yes","Support","100006;","","charters","","Charters","xxx@xx.com","","9/29/2006 10:00:37 AM","9/29/2006 10:07:36 AM","10/24/2006 8:14:18 AM","Charters" I've truncated most of the fields. So, there are some fields which may have time and date stamps etc. Lets compare the first field, it is null. Well it has "" that but for database standpoint it is null. I guess I could strip that using vi and really make it a null. The other file may have some thing like this: "Charter group","","SGP0000","Yes","Support","100006;","","charters","","Charters","xxx@xx.com","","10/30/2006 10:00:26 AM","10/31/2006 10:11:45 AM","10/29/2006 9:18:21 AM","Charters" So I would like to report that the first field has a diff. However, in field 13, 14, time stamps are different, I don't want that to be reported. The problem is that I can't always tell where these time fields will be. That usually depends on the DBA and developer, how they out put the data. Thanks, Nitin Last edited by nitin; 11-02-2006 at 03:10 PM.. |
|
||||
|
Quote:
|
|
|||||
|
Well, a completly empty string is not possible. I mean a complete empty record. We can break the string using "awk -F," and then compare each and field. So the question is, can awk compare null and non-null?
Another thing I was gonna ask is if shell can handle dynamic arrays? Ok.. can this be done in Perl? Any one? -Nitin Last edited by nitin; 11-03-2006 at 11:26 AM.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|