Search Results

Search: Posts Made By: SorcRR
7,507
Posted By SorcRR
RudiC, i'm not dropping it, because i need to get...
RudiC, i'm not dropping it, because i need to get other texts out of the html, but for the example sakes, yes that would make it more optimized.
I have 5 more texts that i'm matching and making the...
7,507
Posted By SorcRR
RudiC, thanks, that works just great if i have a...
RudiC, thanks, that works just great if i have a file with the html code, but i store the html code in variable:

This works, but i store the html code in a variable, not a file:
text=$(sed -n...
7,507
Posted By SorcRR
vgersh99, i tried that before but i don't know...
vgersh99, i tried that before but i don't know why it lists the whole file
7,507
Posted By SorcRR
Another acceptable solution would be to get the...
Another acceptable solution would be to get the next 5 rows in the code after finding <p class="margin-bottom-0">
i can process that result after

I tried this but did not worked
echo...
7,507
Posted By SorcRR
not good enough since the some other text in my...
not good enough since the some other text in my situation is much more i just simplified it in the example.

I want to get at least what is between <p class="margin-bottom-0"> and </p>
so that the...
7,507
Posted By SorcRR
i have just the most recent attempt with awk, i...
i have just the most recent attempt with awk, i don't remember what i tried with sed

echo $siteSource | awk 'f{ if (/<\/p>/){printf "%s", buf; f=0; buf=""} else buf = buf $0 ORS}; /<p...
7,507
Posted By SorcRR
Multiline html tag parse shell script
Hello,

I want to parse the contents of a multiline html tag

ex:

<html>
<body>
<p>some other text</p>
<div>
<p class="margin-bottom-0">
text1
<br>
...
Showing results 1 to 7 of 7

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