Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

save output of command to variable bash

OUTPUT="$(ls -1)"
echo "${OUTPUT}"

MULTILINE=$(ls 
   -1)
echo "${MULTILINE}"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #output #command #variable #bash
ADD COMMENT
Topic
Name
6+6 =