#!/bin/sh
value=`cat config.txt`
echo "$value"
from : https://stackoverflow.com/questions/7427262/how-to-read-a-file-into-a-variable-in-shell
In case if you want to check whether file does not contain a specific string, you can do it as follows. if ! grep -q SomeString "$File...
No comments:
Post a Comment