I\'m trying to use an array to store a list of file names using the find command.
find
For some reason the array fails to work in the bash used by the school
You could use something like that:
find . -name '*.txt' | while read line; do echo "Processing file '$line'" done
E.g. make a copy:
find . -name '*.txt' | while read line; do echo "Copying '$line' to /tmp" cp -- "$line" /tmp done
HTH