My favourite use case is when ssh complains about a host key being changed. I just substitute the offending line number into this: sed -i <line_no>d ~/.ssh/known_hosts and I'm done. Obviously I don't do that thoughtlessly otherwise I'd just disable ssh hosts checking altogether.