Hi,I need a list of ALL the workareas... so that i can submit them through iwsubmit using a perl script.Can anyone suggest any command .. which can fetch the list for me?
=head2 findAllContentBranches() DESCRIPTION find all content branches within all stores and return the vpaths in an array. A content branch is defined as one past the locale or the 5th branch INPUTS n/a RETURNS an array with the vpath to all content branches EXAMPLE@branches=findAllContentBranches();=cutsub findAllContentBranches{ my @allBranches=(); my @contentBranches=(); # list all stores my $clt="$iwhome/bin/iwstoreadm -m"; my $output=`$clt`; my @allStores=split(/\n/,$output); foreach(@allStores){ _expandSubBranches("/$_",\@allBranches); } # filter this on content branches by looking for # 6 slashes (/) foreach my $branch(@allBranches){ if($branch =~ m/^\/.*\/.*\/.*\/.*\/.*\/.*$/){ push(@contentBranches,$branch); } } return(@contentBranches);}# find all branches. Helper for findAllContentBranches.# This will make a recursive dive and find all branches# under the given root branch## Give me:# $parent: root branch to expand# $allBranches: array ref where all branches are stored## Return:# Nothing. Branches are stored in an array refsub _expandSubBranches{ my($parent,$allBranches)=@_; my $clt="$iwhome/bin/iwlist $parent"; my $output=`$clt`; my(@branches)=split(/\n/,$output); foreach my $branch(@branches){ $branch="$parent/$branch"; push(@$allBranches,$branch); _expandSubBranches($branch,$allBranches); }}