I have a file name inputfile having following data:
 database=mydb
 table=mytable
 partitions=p1,p2,p3
I pass this file as first argument as following:
 bash mybashfile.sh inputfile
I want to use this file in my bash script that input database, table and partitions as variables
I tried this by putting the whole content of myfile in a variable
  #!/bin/bash
  var=$(cat $1) 
  echo $var   
I am new to bash script so I need help
 
     
    