I need to write a shell program that installs some packages. The program will run on Linux (obviously some commands will not work, for example, on Arch-based distros).
So, I've got this file called config.conf with the following structure:
#EMAIL
email address here
#TWITTER
twitter account
#FORUM
a bunch of 'http://foru.ms'
#FACEBOOK
#REDDIT
reddit username
The program initial_install.sh should search for the lines that starts with an hash and, if the subsequent line is not empty, install the package needed for that category.
For example, it searches for #TWITTER and, only if a twitter account is written just below that line, it installs the rainbowstream twitter client with sudo apt-get install rainbowstream
.
Can you help me? I have no ideas, i'm not really a 'shell expert'..