Skip to main content
11 events
when toggle format what by license comment
Jun 13, 2024 at 20:32 comment added jubilatious1 This well-written answer expresses serious concerns about code injection vulnerability. I'm certain I saw an answer from @terdon which expressed similar strong (and in my mind--valid) opinions, concluding that prompting for user input should be disfavored. Please I hope that answer will be re-posted, or the extant (one) answer will be updated to include links warning of the dangers of prompting for user input. Thx.
Jun 12, 2024 at 19:55 comment added baiserekku Thanks! I was able to do it!
Jun 12, 2024 at 15:32 comment added Ed Morton I just added a section to that SO answer under "To print fields from a CSV by the column header names rather than field numbers" to show how to do that.
Jun 12, 2024 at 15:23 comment added Ed Morton You're welcome. The standard way to handle "s within a field is to double the "s so a song title like This "IS" a song gets stored in the CSV as "This ""IS"" a song". Ask a new question about using the column header (and using the standard CSV format unless there's some reason why that won't work for you). Do take a look at the Q&A I linked first though as you may be able to figure everything out for yourself after reading that.
Jun 12, 2024 at 15:20 vote accept baiserekku
Jun 12, 2024 at 15:16 comment added baiserekku Thanks A LOT for your effort and for the explanation. That does exactly what I want. And sorry if I've edited the post while you were still writing the answer, as I wanted to make it more clear as seen in the answer by @terdon. The ¬ is there instead of " because some songs have " in the title, and I thought that could break something, so I chose a different separator. I saw your comment about using the column header. That's also a great idea, how is it done?
Jun 12, 2024 at 15:07 history edited Ed Morton CC BY-SA 4.0
added 182 characters in body
Jun 12, 2024 at 15:02 history edited Ed Morton CC BY-SA 4.0
added 182 characters in body
Jun 12, 2024 at 14:56 history edited Ed Morton CC BY-SA 4.0
added 325 characters in body
Jun 12, 2024 at 14:50 history edited Ed Morton CC BY-SA 4.0
added 325 characters in body
Jun 12, 2024 at 14:45 history answered Ed Morton CC BY-SA 4.0