2 edited title
| link

Passing find results of "find" to a variable, one result per linezenity

1
source | link

Passing find results to a variable, one result per line

The result of the following script:

results=$(find -iname "*.mp4")
echo $results;

is something like:

file1 file2 file3

How do I pass the results of the find command to a variable, as it is shown when I run the following command in terminal:

find -iname "*.mp4"

which prints:

file1
file2
file3