I am trying to save the result from find as arrays. Here is my code:
find
#!/bin/bash echo \"input : \" read input echo \"searching file with this
The following appears to work for both Bash and Z Shell on macOS.
#! /bin/sh IFS=$'\n' paths=($(find . -name "foo")) unset IFS printf "%s\n" "${paths[@]}"