I want to write a bash script which takes 2 arguments, a
and b
. Based on the argument, it writes in section a
or section b
of a text file.
Output file is a txt file something like this:
common content....
section a:
<everything should be written here when I specify option "a">
section b:
<everything should be written here when I specify option "b">
I am new to bash.