#!/bin/bash s='# Director, Movie Title, Year, Comment Ethan Coen, No Country for Old Men, 2007, none Ethan Coen, "O Brother, Where Art Thou?", 2000, none' perl -0777 -pe 's/"[^"]*"*(*SKIP)(*F)|,/|/g' <<< "$s"
Standard input is empty
# Director| Movie Title| Year| Comment Ethan Coen| No Country for Old Men| 2007| none Ethan Coen| "O Brother, Where Art Thou?"| 2000| none