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
In bash, $() helps to run a command and capture the output. Passing this to IFS with \n as delimiter helps to convert that to an array.
$()
IFS
\n
IFS='\n' read -r -a txt_files <<< $(find /path/to/dir -name "*.txt")