I had written a bash script as below.
...file1.sh..
read samplearrrr;
echo "*******************"
echo ${#samplearrrr[@]}
echo "*******************"
From terminal I run it as ./file1.sh, and give the input to read as 23 45 67 88,
The length in the output is always getting as 1.
I tried to google it, but did not find a solution.
help readrather than google: Options:-a arrayassign the words read to sequential indices of the array