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
You could do like this:
#!/bin/bash echo "input : " read input echo "searching file with this pattern '${input}' under present directory" array=(`find . -name '*'${input}'*'`) for i in "${array[@]}" do : echo $i done