Below is the content on both the files,
File:1
257054
256986
257144
File:2
257054|Guestroom|http://397_b.jpg|350|350||http://397/hotels/2000000/1330000/1321300/1321278/1321278_397_t.jpg|0
257057|Guestroom|http://398_b.jpg|350|350||http://398/hotels/2000000/1330000/1321300/1321278/1321278_398_t.jpg|0
I need a Bash command that will compare two files and the output contains only
257054|Guestroom|http://397_b.jpg|350|350||http://397/hotels/2000000/1330000/1321300/1321278/1321278_397_t.jpg|0
I can use normal for loop iteration, but it is very slow. I need some solution using awk or sed that has quick processing.