LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Pipelining data of find command in an array after processing the contents of the data (http://www.linuxquestions.org/questions/linux-software-2/pipelining-data-of-find-command-in-an-array-after-processing-the-contents-of-the-data-812629/)

AshishJogeshwar 06-07-2010 07:15 AM

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


All times are GMT -5. The time now is 08:36 PM.