Search Results

Search: Posts Made By: ArterialTool
40,204
Posted By ArterialTool
I think your actually getting the opposite of...
I think your actually getting the opposite of what I am trying to get. I came up with this solution that seems to work:

cat file | awk '{printf("%s", $0); if ( $0 ~ /.*\/>/ ) {printf("\n");}}' |...
40,204
Posted By ArterialTool
Franklin52, Neither solution seems to work,...
Franklin52,

Neither solution seems to work, the AWK solution actually returns nothing.
2,331
Posted By ArterialTool
SED: Extracting text between first occurance of foo in front of bar
Suppose I have a text file that contains the tags <foo> and <bar>. The text file can have unlimted occurances of <foo> and <bar> and looks somthing like this:

<foo>

Some
Text

<foo>

Some ...
40,204
Posted By ArterialTool
Ok, new problem, ive got the following text file:...
Ok, new problem, ive got the following text file:



<JDBCDataSource JNDIName="jdbc/rDB"
Name="" PoolName="Othername" Targets="myserver"/>
<JDBCConnectionPool...
40,204
Posted By ArterialTool
Bakunin, thank you so much for the explanation...
Bakunin, thank you so much for the explanation you gave. Fortunately in this instance everything is on one line, so your first sed function will work. Your second sed function will definitely come in...
40,204
Posted By ArterialTool
I want to extract the data between the tags, but...
I want to extract the data between the tags, but the tags will be input as a variable.
40,204
Posted By ArterialTool
Panyam, that works but I plan to replace...
Panyam, that works but I plan to replace "min-pool-size" with a variable and I don't think your method would work for that.
40,204
Posted By ArterialTool
SED extract XML value
I have the following string:

<min-pool-size>2</min-pool-size>

When I pipe the string into the following code I am expcting for it to return just the value "2", but its just reurning the whole...
11,043
Posted By ArterialTool
Makes sense. Thanks again
Makes sense. Thanks again
11,043
Posted By ArterialTool
Awesome vgersh99, you are my hero! If you have a...
Awesome vgersh99, you are my hero! If you have a second, could you explain to me how that is working? Im a sed newb (awk & sed book is in the mail).

---------- Post updated at 03:57 PM ----------...
11,043
Posted By ArterialTool
Regex NOT EQUAL help
I have the following line to text:

ExecuteQueue Name=default ThreadCount=60


I want to write a sed or awk function that eliminates everything before "ThreadCount" without taking into account...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 12:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy