DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
read the file from shell
#!/bin/sh value=`cat config.txt` echo "$value" #!/bin/bash value=$(<config.txt) echo "$value"
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#read
#file
#shell
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit