If you want to assign it all to one variable and then use that value in a loop?
Try:
while IFS=/ read v_LstStdCdhId rest
do
if [[ $rest == *CD/39/AT/CDH_BV_ODS* ]]; then
echo "${v_LstStdCdhId}/"
fi
done < Bteq_Xport_GetLstStdViewToBuild__1274.txt
If you want to assign it all to one variable try:
v_LstStdCdhId=$(
while IFS=/ read f1 rest
do
if [[ $rest == *CD/39/AT/CDH_BV_ODS* ]]; then
echo "${f1}/"
fi
done < Bteq_Xport_GetLstStdViewToBuild__1274.txt
)