Basic CSV print. Pipe to file and do what you need.
Bugfix: i-1 == j => path[i-1] == j in naive