How do I add a newline to the comments field in Linux? #4635
-
How do I insert a newline in the comments field in Linux? In Windows with PowerShell I can run the following:
I tried using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi! Can you explain more about what does happen when you try this on Linux? Broadly, this is more of a question about your (Linux) shell than it is about beets. When you write something like |
Beta Was this translation helpful? Give feedback.
-
@RobertBernstein have you tried wrapping your string into single quotes? On most Linux shells this will prevent any interpretation of special characters of the shell itself. It could help, but could also lead to just having a literal Also try what @sampsyo pointed out already, open your string with a double quote and just hit enter at the position where you want the newline and close the string with another double quote character. Usually shells understand that. |
Beta Was this translation helpful? Give feedback.
Hi! Can you explain more about what does happen when you try this on Linux?
Broadly, this is more of a question about your (Linux) shell than it is about beets. When you write something like
beet modify foo="bar baz"
, beets never sees those quotes—they are only there to tell your shell how to parse the command line. Beets sees the list of argument stringsmodify
andfoo=bar baz
. I'm not sure how your shell is interpreting the literal character\n
, but perhaps you can try typing an actual newline character there.