output extract line_num "num" as well