![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| grep -w Search for the expression as a word | knijjar | Shell Programming and Scripting | 15 | 04-09-2008 12:36 PM |
| Perl: Search for string on line then search and replace text | Crypto | Shell Programming and Scripting | 4 | 01-04-2008 10:24 AM |
| error: initializer expression list treated as compound expression | arunchaudhary19 | High Level Programming | 12 | 11-16-2007 06:44 AM |
| Advanced Search Problems.. Search by User Name | Neo | Post Here to Contact Site Administrators and Moderators | 1 | 05-19-2003 01:28 AM |
| Regular Expression + Aritmetical Expression | Z0mby | Shell Programming and Scripting | 2 | 05-21-2002 11:59 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Need help on search expression
I have a config file which contains the following text.I wanted to capture the poolname like "ABCPool" and corresponding database and user information( adminuser and database1).I am trying to print the output in the form as show below :
ABCPool --> adminuser@database1 textfile.txt <JDBCDataSource JNDIName="jdbc/igate" Name="ABCDataSource" PoolName="ABCPool" Targets="websrvr"/> <JDBCDataSource JNDIName="jdbc/its" Name="XYZDataSource" PoolName="XYZPool" Targets="websrvr"/> <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver" Name="ABCPool" Password="{3DES}QxZBfCt6Jig=" Properties="user=adminuser" Targets="websrvr" TestConnectionsOnCreate="true" TestConnectionsOnRelease="true" TestConnectionsOnReserve="true" TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@localhost12:1521:Database1"/> <JDBCConnectionPool DriverName="oracle.jdbc.OracleDriver" Name="XYZ" Password="{3DES}VgoIEEBeV3HLTtBB6OaBvw==" Properties="user=webuser" Targets="websrvr" TestConnectionsOnCreate="true" TestConnectionsOnRelease="true" TestConnectionsOnReserve="true" TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@localhost:1521:database2"/> Can someone provide search expression. All the lines listed above are in seperate lines. Last edited by Perderabo; 06-19-2008 at 10:52 PM.. Reason: Disable smilies |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|