The script below echoes the lines with 'me'. But myarray=($line) fails when uncommented with syntax error: got (, expecting done What's up?
#!/bin/bash
filename='/u/me/deltmp.lst'
ls -la /tmp | grep me > $filename
while read line
do
echo $line
# myarray=($line)
# echo "My array: ${#myarray[@]}"
done < $filename