Sponsored Content
Full Discussion: sed to extract HTML content
Top Forums UNIX for Advanced & Expert Users sed to extract HTML content Post 302299830 by septima.pars on Saturday 21st of March 2009 03:31:28 PM
Old 03-21-2009
This is an interesting post...

I am wondering if there is a shell utility like the poppler tools (which convert pdf format to text), which perform conversion of html to text? Maybe I am asking the same question please advise................................
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

mail: html content

hi guys, am required to prepare a report and mail it, to make it more appealing :p i wish to have content of mail in rich text format i.e html type with mailx how to specify the content type of mail body as html? Thanks in advance!!! rishi (2 Replies)
Discussion started by: RishiPahuja
2 Replies

2. UNIX for Dummies Questions & Answers

How do I extract text only from html file without HTML tag

I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part. Same problem happens in "type" command in MS-DOS. I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies

3. Shell Programming and Scripting

sed to extract only floating point numbers from HTML

Hi All, I'm trying to extract some floating point numbers from within some HTML code like this: <TR><TD class='awrc'>Parse CPU to Parse Elapsd %:</TD><TD ALIGN='right' class='awrc'> 64.50</TD><TD class='awrc'>% Non-Parse CPU:</TD><TD ALIGN='right' class='awrc'> ... (2 Replies)
Discussion started by: pondlife
2 Replies

4. Shell Programming and Scripting

Extract URLs from HTML code using sed

Hello, i try to extract urls from google-search-results, but i have problem with sed filtering of html-code. what i wont is just list of urls thay apears between ........<p><a href=" and next following " in html code. here is my code, i use wget and pipelines to filtering. wget works, but... (13 Replies)
Discussion started by: L0rd
13 Replies

5. Shell Programming and Scripting

SED to extract HTML text data, not quite right!

I am attempting to extract weather data from the following website, but for the Victoria area only: Text Forecasts - Environment Canada I use this: sed -n "/Greater Victoria./,/Fraser Valley./p" But that phrasing does not sometimes get it all and think perhaps the website has more... (2 Replies)
Discussion started by: lagagnon
2 Replies

6. Shell Programming and Scripting

help with sed needed to extract content from html tags

Hi I've searched for it for few hours now and i can't seem to find anything working like i want. I've got webpage, saved in file par with form like this: <html><body><form name='sendme' action='http://example.com/' method='POST'> <textarea name='1st'>abc123def678</textarea> <textarea... (9 Replies)
Discussion started by: seb001
9 Replies

7. Shell Programming and Scripting

Print content between two html tags

Hi Expert, Is there any other way to print and write to a same filename the content between two html tags? Here the sample: cat file.html <div id="outline"> hello world<br> </div> <div id="container_faq"> test1<br> </div> <div class="widget_quick"> thead test<br> </div> ... (3 Replies)
Discussion started by: lxdorney
3 Replies

8. Shell Programming and Scripting

Awk/sed HTML extract

I'm extracting text between table tags in HTML <th><a href="/wiki/Buick_LeSabre" title="Buick LeSabre">Buick LeSabre</a></th> using this: awk -F "</*th>" '/<\/*th>/ {print $2}' auto2 > auto3 then this (text between a href): sed -e 's/\(<*>\)//g' auto3 > auto4 How to shorten this into one... (8 Replies)
Discussion started by: p1ne
8 Replies

9. Shell Programming and Scripting

Mailx with attachment and html content

Hi, Please see my code below i'm trying get an email send with attachment and html content in the body. Using the code below will put the encoding for attachment in the body as well SUBJECT="$(echo "XPI Monitoring "${tcnt}" transactions waiting \nContent-Type: text/html")" cat... (3 Replies)
Discussion started by: bhoshan
3 Replies

10. Shell Programming and Scripting

Convert content of file to HTML

Hi I have file like this: jack black 104 daniel nick 75 lily harm 2 albert 5 and need to convert it into the html table like this: NO.......name....family..... id 1...........jack.....black.....104 2..........daniel....nick.......75 3..........albert.................5 i mean... (5 Replies)
Discussion started by: indeed_1
5 Replies
snsend,v0.3.8(8)					      System Manager's Manual						  snsend,v0.3.8(8)

NAME
snsend - distribute articles snstore - store articles locally SYNOPSIS
snsend [-rvcna] snstore [-rvcna] DESCRIPTION
snsend reads articles from descriptor 0 and distributes each one into each newsgroup they are posted to, like inews. snstore does the same but stores them all locally. The input articles are expected to be in wire format (lines end with CRLF, leading dots are doubled, and articles are terminated with a lone dot). Control messages are not treated specially. The newsgroups list is taken from the X-sn-Newsgroups field if it exists; otherwise it is taken from the Newsgroups field, which must exist or the article will be junked. All fields whose names begin with X-sn- (case insensitive) are always removed. If Date or Message-ID are not present, these are created. The local hosts name is prepended to the Path field. If an article is to be junked, it is sent to the junk newsgroup if it exists, otherwise it is discarded. ROUTING
This applies only to snsend. snstore does not route; it treats all news.groups as though they were local (see Nonexistent newsgroup and Local newsgroup below). If any of the following fails, snsend aborts: For each news.group an article is (cross-) posted to, snsend routes the article as follows, aborting if any action fails: Nonexistent newsgroup If /var/spool/sn/news.group is not a directory, snsend ignores this news.group. If all news.groups are thus ignored, the article is junked. Global newsgroup If /var/spool/sn/news.group/.outgoing is a (symlink to a) directory, snsend stores the article into a file in that directory, if the same article does not already exist there (so news.group's upstream feed doesn't get multiple copies of the same article.) Such in- transit article files are given names that begin with a $ sign. Local processing via script Otherwise if /var/spool/sn/news.group/.outgoing is a regular file, it is taken to be a script or program and is run with the article available on its input. See /var/spool/sn/dot-outgoing.ex. Local processing via fifo Otherwise if /var/spool/sn/news.group/.outgoing is a fifo, the article is written into it. It is an error if nothing is reading the fifo. Local newsgroup Otherwise if /var/spool/sn/news.group/.outgoing does not exist, the article is stored into news.group. OPTIONS
Options apply to snsend and snstore equally. -r The article stream is in rnews batch format, rather than wire format. Only the #! rnews form is understood. -c If an article already exists in the local newsgroup it is destined for, don't store it there. For snsend, this option has no effect on newsgroups that are not local. -a (Aliases not allowed.) When storing to multiple local newsgroups, do not alias subsequent copies to the first, instead, make a copy. Aliasing saves disk space, but when the original expires, so do all aliases to it. This option has no effect on newsgroups that are not local. -n Don't actually do anything with the article, just dump it back onto descriptor 1. -v For each article stored in each newsgroup, output a line to descriptor 1 similar to what snscan would emit, except that for non- local newsgroups the serial number will always be 0. FILES
/var/spool/sn/news.group.name/ This includes /var/spool/sn/=junk newsgroup if it exists. Each such directory represents the newsgroup of the same name, and arti- cles are stored in files 1, 2, 3, etc. beneath it. Each such file contains 1 or more articles. This is contrary to the traditional form of /var/spool/sn/news/group/name. news.group.name. /var/spool/sn/news.group/.outgoing See also ROUTING above. The presence of this directory indicates that news.group is global, and articles posted to news.group end up here in files named $*. These files are linked in already complete, so all such files are ready to be uploaded. /var/spool/sn/news.group/.compress If this file exists, articles stored in news.group are candidates for compression. The content of the file is a number representing a minimum article body size below which compression won't be applied. If the file is empty this threshold defaults to 1024 bytes. /var/spool/sn/.me If this file exists, it's contents are taken to be the local hosts name for purposes of the Path field. Otherwise the name is obtained from gethostname(2). ENVIRONMENT VARIABLES
See also /usr/sbin/dot-outgoing.ex for other variables exported when snsend invokes a .outgoing program. SNROOT If this is set, its value is used in place of /var/spool/sn. EXIT CODES
snsend and snstore exit 0 on success, 1 on usage error, 2 on system error, 3 on article format error, and 9 if /var/spool/sn/news.group/.outgoing (snsend only) exits with other than 0. SEE ALSO
/usr/sbin/dot-outgoing.ex, snscan(1) N.B. Harold Tay snsend,v0.3.8(8)
All times are GMT -4. The time now is 07:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy