DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+6 =
Submit