I want to save all filename in ~/mount that is a csv file. Below is my code
#!/bin/bash
IFS=$'\n' ARR=`find ~/mount -name '*.csv'`;
for VALUE in "${ARR[@]}";
do
echo "<----$VALUE---->";
done
This should print out
<----foo.csv---->
<----bar.csv---->
but instead, it prints out
<----foo.csv
bar.csv---->
How can I fix this? or is there another way? Thank you.