Preserve formatting when command output is sent to a variable?
178
Why does my shell script choke on whitespace or other special characters?
3045
Generate a command block with variable data
102224
Does variable=$(...) store the command or the result of the command in POSIX sh
102723
Storing output of shell script to variable
53200
How to separate command output to individual lines
47068
Wrapping a command that includes single and double quotes for another command
62241
How do I set a variable to the output of a command in Bash?
105115
Writing command output in Windows cmd to a file (with a twist)
106491
How can I easily share the output of a command or a text file with others?
92426
Execute a script when the output of a command has a specific string
54231
How can I retrieve the first word of the output of a command in Bash?
75057
How to overwrite the same line in command output from batch file
104899
Why do newline characters get lost when using command substitution?
60882
Bash shell script output alignment
149991
How does formatting work in Windows?
31746
How do I redirect command completion output?
16373
How can I send stdout to multiple commands?