To take two variables from a file and act as an input for the script

view story

http://www.unix.com – Hi, I have done the scripting such that it will read input line by line from a txt file and is passed through a script, but now my requirement is to pass two variables into a script from a file, how could I do this or is there any other better idea ? for reading singe input from a file, line by line I have used the below script Code: while read -r inputname do   java weblogic.Admin -adminurl  -username weblogic -password xxxxx  -mbean Name=$inputname,ServerRuntime=aaaa,Type=JDBCConnectionPoolRuntime" > output.log done < filename.txt Now the requirement is sinc (HowTos)