# Basic syntax:
{ command_1 ; command_2 ; ... } > output_file
# Where the standard outputs of command_1, command_2, and any others
# used will be printed (in order of the commands) to the output_file
# Note, adding a space between the commands and the braces {} and
# semicolons ; can help avoid syntax issues with the commands
# Basic syntax:
command_producing_multi-line_output | tr '
' ' '
# Where:
# - | sends (pipes) the multi-line output of your command to tr
# - tr '
' ' ' converts (translates) all new line characters from the
# multi-line output to spaces, resulting in a single line
# Note, change ' ' to whatever delimiter you want between the lines now
# displayed on a single line (e.g. ',' or ';' or '|')
{ echo "The quick"; echo "brown fox"; } | tr "
" " "