fork download
  1. #!/bin/bash
  2. s='# Director, Movie Title, Year, Comment
  3. Ethan Coen, No Country for Old Men, 2007, none
  4. Ethan Coen, "O Brother, Where Art Thou?", 2000, none'
  5. perl -0777 -pe 's/"[^"]*"*(*SKIP)(*F)|,/|/g' <<< "$s"
Success #stdin #stdout 0s 5012KB
stdin
Standard input is empty
stdout
# Director| Movie Title| Year| Comment
Ethan Coen| No Country for Old Men| 2007| none
Ethan Coen| "O Brother, Where Art Thou?"| 2000| none