used grep instead of sed to remove from history