Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Diff on 1gb files

$
0
0
Hey Guys,
I have a scenario to compare two different files which are of size 1gb each. I need to get the uncommon lines. I planned to use sdiff command, which generally works perfect for me. But in this case am facing a error saying

"diff: memory exhausted"
Can anyone please explain this.

Also, can anyone suggest a unix command to compare huge files, to get the common and the uncommon lines between the two files.

Thanks,
Abhishek S.

Viewing all articles
Browse latest Browse all 16232

Trending Articles