in reply to Re^2: Need Some help with finding a word in a file
in thread Need Some help with finding a word in a file

I can deal with the duplicates, not that big of a deal, but I think I need help with my regex, some of the stings have a null value, and some have a value, I need the ones that look like this:

authDataAlias="cell-tstc-65_DM/userQ"

I'm only concerned with: cell-tstc-65_DM/userQ

If I do this, sed returns a blank line in the file since one of the authDataAlias strings is set to ="":
($line =~ m/authDataAlias=\"([^\"]*)\"/i) cell-tstc-65_DM/userQ cell-tstc-65_DM/user1
If I run this sed command, it ignores the empty sting, but returns too much of the line:
($line =~ m/authDataAlias=(.*-.*-.*_DM\/.*)/i) "cell-tstc-65_DM/userQ" connectionDefinition="ConnectionDefinition_105 +4132487569" cmpDatasource="DataSource_1195273954323"> "cell-tstc-65_DM/user1" relationalResourceAdapter="builtin_rra" statem +entCacheSize="10" datasourceHelperClassname="com.ibm.websphere.rsadap +ter.DB2UniversalDataStoreHelper">