Sponsored Content
Top Forums Shell Programming and Scripting Comparision of two huge unix files - Reconcilation Post 302516255 by Suman Singh on Friday 22nd of April 2011 09:38:19 AM
Old 04-22-2011
Thanks to every one.

But i just want to know why the code which i implemented did not work.



Thanks,
Suman
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to perform comparision in unix

I am trying to perform a simple if/else check. if ; then mkdir /wdnet/oracletest else mkdir $CON_DIR fi I guess I don't understand the unix basics about comparisons. My scripts always executes the if, even though my CON_DIR variable is not blank. What am I doing... (5 Replies)
Discussion started by: artfuldodger
5 Replies

2. Shell Programming and Scripting

Unix File Comparision

I have a file named file1 which contains numbers in sequence like... 1 2 3 7 8 Then i have file File 2 that contains 4 5 ........so i need to compare both files so that i can find out the missing entry in the sequence is 6.......These files are flat files which contain and so i need to... (5 Replies)
Discussion started by: coolguy01
5 Replies

3. Shell Programming and Scripting

comparision of string in various files

i want to take position 19-24(only first line) from all files and need to compare any duplication is there or not. If duplication, then i have to print the file names. I have written to take the characters from 19-24 from all files. but how to compare ? ... (1 Reply)
Discussion started by: senthil_is
1 Replies

4. Shell Programming and Scripting

Column comparision in two files

Hi, I need to compare a column in two different csv files file1 xyz.com,2/2/12,a,b,c eg.com,2/2/23,a,b,ga file2 1,2,ua,xyz.com 1,2,ua,abc.com 1,2,ua,eg.com 1,2,ua,easg.com 1,2,ua,zth.com Read all entries in file1(which has 1000+) and compare column1 of file1 with the column4... (13 Replies)
Discussion started by: nuthalapati
13 Replies

5. UNIX for Advanced & Expert Users

Comparision of two files.

File Structure file1.txt.arch 029429288,1,,,02087400376,N,02087400376,N,0,02087400376,N,0,0,8010,08000151736,U,N,,08000151736,U,20100726111237,20100726111237,0,20100726111651,00004140,16,16,10,N;... (1 Reply)
Discussion started by: ravigupta2u
1 Replies

6. Shell Programming and Scripting

Date comparision in Unix

Hi All, I would need your help to compare dates in my script. Say if I have the dates in a file I need to comapre these dates with yesterday's date and the dates which are older than yesterday needs to be displayed. Example: 03/22/2012 03/24/2012 03/20/2012 03/21/2012 03/12/2012... (1 Reply)
Discussion started by: pdreddy34
1 Replies

7. Shell Programming and Scripting

Comparision of fields in 2 files.

Hi Experts, I have two huge files in the format as shown below.I need to open a file1 and file 2 , cut first 24 characters of file 1 and search if the key exists in file 2 first field (delimted by *). If the value exists , copy the third field from file 2 and replace the 5th field in file 1 .... (4 Replies)
Discussion started by: nua7
4 Replies

8. UNIX and Linux Applications

Unix Shell Scripting : Comparision of two files

Hi, We need to compare a text file File1.txt and config file File2.txt in a way that it checks if the content of File1.txt exists between the range mentioned in File2.cfg. The range here is the range between col1 and col2 of File2.cfg If the content of File1.txt lies between the range of... (12 Replies)
Discussion started by: CFA
12 Replies

9. Shell Programming and Scripting

Comparision of two text files

Dear all, I am having two files big files i need an output file as first occurance of file1 field in file2 example: file1:raju ranifile2:raju|123 raju|879 rani|623 rani|253result:raju|123 rani|623pls help me in this regard (3 Replies)
Discussion started by: suryanarayana
3 Replies

10. Shell Programming and Scripting

Comparing Select Columns from two CSV files in UNIX and create a third file based on comparision

Hi , I want to compare first 3 columns of File A and File B and create a new file File C which will have all rows from File B and will include rows that are present in File A and not in File B based on First 3 column comparison. Thanks in advance for your help. File A A,B,C,45,46... (2 Replies)
Discussion started by: ady_koolz
2 Replies
VARIANT_CMP(3)								 1							    VARIANT_CMP(3)

variant_cmp - Compares two variants

SYNOPSIS
int variant_cmp (mixed $left, mixed $right, [int $lcid], [int $flags]) DESCRIPTION
Compares $left with $right. This function will only compare scalar values, not arrays or variant records. PARAMETERS
o $left - The left operand. o $right - The right operand. o $lcid - A valid Locale Identifier to use when comparing strings (this affects string collation). o $flags -$flags can be one or more of the following values OR'd together, and affects string comparisons: Variant Comparision Flags +--------------------+----------------------------------+ | value | | | | | | | meaning | | | | +--------------------+----------------------------------+ | | | | NORM_IGNORECASE | | | | | | | Compare case insensitively | | | | | | | |NORM_IGNORENONSPACE | | | | | | | Ignore nonspacing characters | | | | | | | |NORM_IGNORESYMBOLS | | | | | | | Ignore symbols | | | | | | | | NORM_IGNOREWIDTH | | | | | | | Ignore string width | | | | | | | |NORM_IGNOREKANATYPE | | | | | | | Ignore Kana type | | | | | | | |NORM_IGNOREKASHIDA | | | | | | | Ignore Arabic kashida characters | | | | +--------------------+----------------------------------+ Note As with all the variant arithmetic functions, the parameters for this function can be either a PHP native type (integer, string, floating point, boolean or NULL), or an instance of a COM, VARIANT or DOTNET class. PHP native types will be converted to variants using the same rules as found in the constructor for the "VARIANT" class. COM and DOTNET objects will have the value of their default property taken and used as the variant value. The variant arithmetic functions are wrappers around the similarly named functions in the COM library; for more information on these functions, consult the MSDN library. The PHP functions are named slightly differently; for example variant_add(3) in PHP cor- responds to VarAdd() in the MSDN documentation. RETURN VALUES
Returns one of the following: Variant Comparision Results +------------+---------------------------------------+ | value | | | | | | | meaning | | | | +------------+---------------------------------------+ | | | | VARCMP_LT | | | | | | | $left is less than $right | | | | | | | | VARCMP_EQ | | | | | | | $left is equal to $right | | | | | | | | VARCMP_GT | | | | | | | $left is greater than $right | | | | | | | |VARCMP_NULL | | | | | | | Either $left, $right or both are NULL | | | | +------------+---------------------------------------+ PHP Documentation Group VARIANT_CMP(3)
All times are GMT -4. The time now is 02:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy