Unix file operations(shell script)

Hi,

I want to compare two files. Files will look like as follows:

file1:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890
file2:
ZXCVBVNM|0987654321234567
POLKIJUYH|1234789060985478

output file should be:
ASDFGHJU|1234567890123456
QWERTYUI|3456789098900890

Thnaks in advance

... and what is the 'criteria'?

I want to get the contents that are not present in file2.

I.e File1 and file2 should be compared and output file should be the contents that are present in file 1 and not present in file2.

Please help me. thanks.

if the files are sorted, look into 'man comm'
also look into 'man egrep'

I don't want to use diff command. because it displays other things also while comparing.

1d0
< CREDPOST|6001123412341234

I don't want

1d0
<

Please give me a command.

pls read my previous post!

THanks,

comm command works fine.