Skip to main content

bash script include config file

With source command static variables may be included from the main bash script like:
source /etc/script.config

And content of config file may like:
app_list=('app1' 'app2' 'app3')


Popular posts from this blog

Find and replace with sed command in Linux

Find and replace feature is always handy. It can turn into a torture when it comes to change or delete a simple constant string in a text file. There is a handy tool in linux for doing these kind of tihngs. Actually sed is not a text editor but it is used outside of the text file to make changes.