Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Read environment from config file
- set -o allexport
- source my_config_file.conf
- set +o allexport
- VAR1=eee
- VAR2="dsfsdf sd fsdf"
- VAR3=$VAR1
- # comment
- oldPATH="$PATH"
- PATH=
- set -o allexport
- source /full-path-name/my_config_file.conf
- set +o allexport
- PATH="$oldPATH"
- eval `awk -v FS="=["]*" -v RS="["]*n" '/^[A-Z0-9]+=/ { printf("export %s="%s"; ", $1, $2); }' my_config_file.conf`;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement