Search
 
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
Name
2+3 =