I'm using the following script to get the data of one of the variables from the database file
#!/bin/bash
sqlite3 pdu.db <<'END_SQL'
.timeout 2000
SELECT Variable_Value FROM Data Where Sr_No'7';
END_SQL
Now I wanted to store the output of the above commands in one variable. How we can store multiple commands output in one variable in the shell script?
sqlite3. It has multiple lines of input in the where-doc, but that doesn't create multiple commands.SELECT.