I have a file f1:
f1
line1 line2 line3 line4 .. ..
I want to delete all the lines which are in another file f2:
f2
Try comm instead (assuming f1 and f2 are "already sorted")
comm -2 -3 f1 f2