[Dirvish] Extracting just a list of banks via PERL

Richard Geoffrion dirvish at rain4us.net
Fri Feb 8 00:24:35 UTC 2008


Red Mop wrote:
>>> <snip>
>>> Attempt1:
>>> What is the best way for me to populate a BASH ARRAY with the paths of
>>> all of the configured banks in /etc/dirvish/master.conf?
>>> <snip some more>
> This works too.
>
> BANK_FOUND=0
> BANK_ENDED=0
>
> for X in `cat /etc/dirvish/master.conf` ; do
>
> <snip the script cuz it's in the previous post>
> done
>
> echo $BANKS
>   

Ok.. I'll take a look at that.  I've managed to extract all of the banks 
into an array, but it looks so UGLY!  This script looks cleaner.  I'll 
evaluate and see how I can use it.

-- 
Richard


More information about the Dirvish mailing list