I'm using BASH to compare two files, but I only want to receive an output if there is a line in the first file that isn't in the second. I only want to see the < results. How can I do this?
I've tried:
diff /"ripe_route_from_"$place"_v4" /"unspecified_route_from_"$place"_v4" | egrep '<|>' > "diff_ripe_unspecified"_$place
egrep '<' "diff_ripe_unspecified"_$place > ripe_routes_diff_unspecified
(file locations censored, that's not part of the issue)
but it doesn't give me a result.