Assign find command output to a varaible
Hi Im trying to assign a find command output to a varaible but im unable to do so
Can someone please help me solve it
<
Quote:
#!/bin/bash
array=(vnbh5-apcpu 05-apcpu)
for item in ${array[*]}
do
echo $item
fileslist= find /nmis/ -name "$item.xml" -type f
echo the file is at $fileslist
done
|
Thanks
Last edited by rohan1977; 04-30-2012 at 02:28 AM.
|