Search Results

Search: Posts Made By: Ashik409
2,178
Posted By Ashik409
Search for a html tag and print the entire tag
I want to print from <fruits> to </fruits> tag which have <fruit> as mango. Also i want both <fruits> and </fruits> in output. Please help

eg.
<fruits>
<fruit id="111">mango<fruit>
.
another...
12,635
Posted By Ashik409
Thanks Ranga... i Missed special character... :b:
Thanks Ranga... i Missed special character... :b:
12,635
Posted By Ashik409
if there are exactly three decimals then sed...
if there are exactly three decimals then
sed 's/.000//g' will work.
2,426
Posted By Ashik409
a clumsy solution but works
clumsy solution but worked well...

cat filename | grep -E "<h1>|<h2>|Email: |lblCity" | sed 's/</\n/g' | grep -E "^h1|^h2|^a|^span id" | grep -v -E "ctl01_nameLink|ctl01_lblEmail" | awk -F ">" '{...
Showing results 1 to 4 of 4

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