How to correctly store a newline character in a (POSIX) shell variable?
134667
How can I set an environment variable which contains newline characters?
15638
Shell not handling escape character spaces
19369
How can I use $variable in a shell brace expansion of a sequence?
127994
bash needs another newline to execute pasted lines
11087
How can I echo a newline in a batch file?
3180
How do I get a platform-dependent new line character?
101357
bash -c variable resolution in subshell
110498
How can I replace a newline (\n) using sed?
136528
Echo newline in Bash prints literal \n
102137
What's the purpose of adding a prefix on both sides of a shell variable comparison to a string literal?
8529
How can I '\input' a file without getting the implicit newline?
66271
Where has the trailing newline char gone from my command substitution?
51442
Why does bash variable expansion retain quotes?
20307
Using `printf` to print variable containing `%` percent sign results in "bash: printf: `p': invalid format character"
178
Why does my shell script choke on whitespace or other special characters?
157583
When to use bash ANSI C style escape, e.g. $'\n'
81998
How can I manually interpolate string escapes in a Perl string?