in reply to Re: Matching array elements against file
in thread Matching array elements against file
Hi Ken, cutting and pasting the whole array and file would of been two large so I just tried to create snippets of the data which included all scenarios of possibilities. You are correct, the data source was sloppy I appologies.
After observing your code (and thanks for the assistance) and digesting your points. Point 1 is a typo, correct. Point 2 the data was correct, there could be cases where server= is a missing attributePoint 3 you're right
'server=cvmfsser3::FS=/opt/apps'
This should be single :
Your code is nearer enough what I need but one thing seems to be throwing it out at present
'server=cvmfsser1, cvmfsser2:FS=/opt/apps',
even if two servers appear as comma seperated, this should indeed part match but against FS and Server (server being that there is one of the two in the comma seperated list whihc exist in the file. Your code part matches against the fileystem but would not part match against the server if the filesystem didnt exist
. As you can see in the data output, it is only showing up as a part match against the fileysstem. If the filesystem didnt exist, Id need to to part match againstcvmfsser1::/opt/apps/::app_support cvmfsser3::/opt/apps/::app_support
'server=cvmfsser1
I hope I have explained myself well enough. Thanks in advance
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Matching array elements against file
by kcott (Archbishop) on Jan 25, 2014 at 22:59 UTC |