Skip to content

Commit

Permalink
Sample script to read from config file
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoasis committed Oct 29, 2016
1 parent 2a07e22 commit 8977f70
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Empty file added .tmp
Empty file.
9 changes: 9 additions & 0 deletions read-from-config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

echo "Reading config...." >&2
source config.cfg
echo "Config for the username: $cool_username" >&2
echo "Config for the target host: $cool_host" >&2

# sources
# http://wiki.bash-hackers.org/howto/conffile

0 comments on commit 8977f70

Please sign in to comment.