我正在尝试进行查询并将每一行结果存储在 ksh 中的数组元素中(也许是 bash)。我愿意:
result=($($PATH_UTI/querysh "
set heading off
set feedback off
SELECT columnA,columnb FROM user.comunication;"))
我有这个:
row1 = HOUSE CAR
row2 = DOC CAT
echo "${result[1]}" and it gives me HOUSE
但我想得到:
echo "${result[1]}" gives: "HOUSE CAR"