Pipelining data of find command in an array after processing the contents of the data
Hi
I am searching for a file in a specific folder using the following command and storing it in a log file
find . -maxdepth 2 -type f -name "components.xml" -print | while read obj
do
basename `dirname $obj` >> avail_list.log
done
Here i want to do the following
1. Store each entry after processing in an array variable.
2. Use this array variables as arguments to function calls.
Here my primary objective is to store the entries from 'find' command in an array.
Regards,
Ashish
|