Re^4: Problem in pattern matching with alternationby perladdict (Chaplain)
|on Aug 12, 2007 at 17:35 UTC||Need Help??|
after running this script with argument as vobtag list that i got from running "cleartool lsvob -s" command
like as bash-3.0$cleartool lsvob /vobs/cs_test_scripts from command prompt will give the result as below
the output contains three parts */vobs/cs_test_script,*/scm are as vobtags
/usr/add-on/puccase_vob01/ccvob01/cs_test_scripts.vbs is vobstorage directory path
and last part is type as "public (replicated)".
from this i want to extract vobstorage path of each vobtag that i am supling vobtag(/vobs/cs_test_script)as argument to the below script,in that i am matching the output for the tags with 2 slashes in it ex:/vobs/cs_test_script and
vobtag with one slash in it ex:/scm
with regular expression that has to match the output for both type of vobtags(/vobs/cs_test_script,/scm)by using alternation operator in patternmatching as below script
I am running the script with both type of vobtags as /vobs/cs_test_scripts and /scm as arguments so its printing the match for both $storage1 and $storage2 as below
bash-3.00$ perl scriptname.pl /vobs/cs_test_script
bash-3.00$ perl scriptname.pl /scm
In $storage3 variable i am combining the pattern match of storage1 and storage2 by alternation operator,it should work for both type of vobtag arguments,i am not getting where i am doing wrong...
Monks sorry for repeated posting of same qustion again and again...the problems seems to simple for u people ....