Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash combine output from two commands

# 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
Source by unix.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #bash #combine #output #commands
ADD COMMENT
Topic
Name
6+5 =