Hi All,
I want to format the result driven from the query into neat format.
For example pls find the below code,
#! /bin/sh
result='
sqlplus -s uname/passwrd@DBname
select no,name,address,ph_no, passport_no,salary,designation
from emp_table where salary>1000;
exit
EOF'
echo $result
The code results a huge set that is not fit into the screen.
the number of rows returned from the query is also not static.
please help me to the result in formatted manner.
please advice me if any coloring or formatting text style command are availabe.
Thankyou all in advance.