Problem in Diff command...

Hi All,

I havae 2 files like this
File1.dat.tar.gz--- has

+667866066123|20110506
+667866066866|20110405

File2.dat.tar.gz -----contains

+447866066123|20110505
+447866066866|20110405

If I give

Gzcat File1.dat.tar.gz | cut �d �|� �f 1 > out1.dat 
Gzcat File2.dat.tar.gz| cut �d �|� �f 1 > out2.dat

Now out.dat contains 3 rows

/users/sur/file1.dat 
+667866066123
+667866066866

Out2.dat contains 3 rows

File2.dat
+447866066123
+447866066866
Diff out1.dat out2.dat

Then it says

1c1
< /users/sures_p/file1.dat
---
File2.dat

It means the first line in those 2 files are the previous filenames.
Either I have to ignore the first line from the 2 files when doing diff.

Any help is really appreciated.

Not sure if they are just typos, you did a diff between out1.dat and out2.dat. You have pasted the output of out.dat and Out2.dat

what is the issue here?

--ahamed

Thanks for your reply ahamed.

In my two output files I am getting the source filenames in my target output files. Now, I need to load the data in target file without having source filenames. I tried a lot. But everytime I am getting source filename in my target output files.
out.dat

/users/sur/file1.dat 
+667866066123
+667866066866

Out2.dat

File2.dat
+447866066123
+447866066866

Original output should be
out.dat

+667866066123
+667866066866

Out2.dat

+447866066123
+447866066866
gzcat File1.dat.tar.gz | cut �d �|� �f 1 | sed '1d' > out1.dat 

--ahamed

I resolved my problem. Thanks ahamed.