The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-19-2008
RK2008 RK2008 is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 1
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
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:16 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0