The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Extract particular text Shell_Learner Shell Programming and Scripting 4 04-24-2009 05:51 AM
c program to extract text between two delimiters from some text file kukretiabhi13 High Level Programming 7 12-03-2008 06:29 PM
Using awk to extract text Davizzle Shell Programming and Scripting 5 08-15-2008 01:09 AM
Sorting rules on a text section Indalecio Shell Programming and Scripting 4 12-05-2006 05:25 AM
grep multiple text files in folder into 1 text file? coppertone UNIX for Dummies Questions & Answers 7 08-23-2002 02:50 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-03-2009
meny meny is offline
Registered User
  
 

Join Date: Jul 2009
Location: Israel
Posts: 5
hi there- more input

hi mate,

below i paste the exact section that i need for my bash script.
so i need to isolate it in order to display it or extract some text from it.

note that some of the input is unique for this module (nm="db") but not for the entire configuration file- once i will isolate this module it will be much easier to extract the relevant text.

the section that i need to isolate from the file content:

<Module nm="db" service="DB" element="Physical connection" desc="Configurations for Database connection - server, s
chema, connections " exp="Production">
<ParamSubList nm="db" service="DB" element="Physical connection" desc="Configurations for Database connection - s
erver, schema, connections " exp="Internal" sectionType="" keyDesc="" valDesc="" paramsTp="None">
<Param key="username" v="clients_46_sp6" machine="" site="" tp="string" desc="DB Username" exp="CustomerSupport
" hot="false" cat="Basic" layer="Installation" mandatory="false" id="8954" service="General" element="Database" />
<Param key="password" v="clients_46_sp6" machine="" site="" tp="string" desc="DB Password" exp="CustomerSupport
" hot="false" cat="Basic" layer="Installation" mandatory="false" id="8955" service="General" element="Database" />
<Param key="host" v="qa158" machine="" site="" tp="string" desc="Service name of the local database, as configu
red in the TNS names .ora file" exp="CustomerSupport" hot="false" cat="Basic" layer="Installation" mandatory="false"
id="8956" service="General" element="Database" />
<Param key="connections_amount" v="3" machine="" site="" tp="string" desc="" exp="CustomerSupport" hot="false"
cat="None" layer="Installation" mandatory="false" id="0" service="DB" element="Physical connection" />
<Param key="override_language" v="10" machine="" site="" tp="string" desc="System preferred language" exp="Cust
omerSupport" hot="false" cat="Basic" layer="Installation" mandatory="false" id="8953" service="General" element="Loca
lization" />
<Param key="system_language_string" v="SYSTEM PREFERRED LANGUAGE" machine="" site="" tp="string" desc="Language
description for system preferred language" exp="CustomerSupport" hot="false" cat="Basic" layer="Installation" mandat
ory="false" id="0" service="DB" element="Physical connection" />
<Param key="repository_debug_mode" v="no" machine="" site="" tp="string" desc="This parameter is used to show a
message if a missing Repository entry is found" exp="CustomerSupport" hot="false" cat="Basic" layer="Installation" m
andatory="false" id="18791" service="General" element="Database" />
<Param key="empty_string" v="MISSING REPOSITORY" machine="" site="" tp="string" desc="" exp="Internal" hot="fal
se" cat="None" layer="Installation" mandatory="false" id="0" service="DB" element="Physical connection" />
<Param key="use_oci_corba" v="no" machine="" site="" tp="string" desc="" exp="CustomerSupport" hot="false" cat=
"None" layer="None" mandatory="false" id="18903" service="General" element="Database" />
<Param key="connection_expiration" v="900" machine="" site="" tp="string" desc="refresh time for DB connection"
exp="Internal" hot="false" cat="None" layer="None" mandatory="false" id="0" service="DB" element="Physical connectio
n" />
<Param key="take_db_connection_timeout_sec" v="4" machine="" site="" tp="string" desc="Enables timeout in secon
ds when waiting for free db connections. Default is 0. 0-wait forever, 1 and more - seconds to wait for a free db con
nection" exp="Internal" hot="false" cat="None" layer="Installation" mandatory="false" id="0" service="General" elemen
t="Physical connection" />
<Param key="extended_log_level" v="0" machine="" site="" tp="string" desc="Enables extended debug logging. Defa
ult is 0. 0-Disabled, 1-Basic, 2-Verbose, 3-Full" exp="Internal" hot="false" cat="None" layer="Installation" mandator
y="false" id="0" service="General" element="Physical connection" />
<Param key="latency_warning_threshold" v="22000" machine="" site="" tp="string" desc="Sets the max latency in D
B calls (milliseconds), after which a warning is logged" exp="Internal" hot="false" cat="None" layer="None" mandatory
="false" id="0" service="DB" element="Physical connection" />
</ParamSubList>
</Module>

thanks dude...
  #2 (permalink)  
Old 07-02-2009
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,119
Code:
nawk 'FNR==50,/^x/' myFile
Reply

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 12:05 PM.


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