Convert line-by-line; allow _ in names; output commands to one line