HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.

learn more… | top users | synonyms

1
vote
0answers
27 views

How to extract a web page text onthe basis of <p> tag [migrated]

The Punjabi Dictionary (year-1895) web page is available in Creative Commons license. How can i extract the text (words) in between the html <p> </p> tag. This video describes. But i am ...
0
votes
3answers
63 views

How to configure 'at' and 'sendmail' to mail output with Content-Type: text/html

I am upgrading some batch programs to produce html output rather than text. The batch programs are run with the at command, which in turn sends all output to the user using the sendmail command. ...
1
vote
1answer
46 views

basic webscraping from the CLI

I'm trying to fetch html tags and their attributes from a webpage with linux command line tools. Here's the concrete case: Here's the task: Get all 'src' attributes of all 'script' tags of the ...
0
votes
0answers
38 views

wgetting links that are written in script form - not plain html

I use wget to download all the html pages in an online gallery - in order to grab all the links to the full size images as follows: wget --wait=3 --user-agent=Webtography --no-cookies --timestamping -...
0
votes
3answers
72 views

Awk command to get the next line from the matched pattern and crop the string in between two patterns

I need to get the next line after matched pattern and need cut or crop the value in between two patterns from that line. Sample Source file <h2>Commodity Information</h2> <dl> ...
1
vote
2answers
73 views

Rename all spaces in image file names inside html php files

Inside different htm.gz, html.gz and php.gz web files I have images and the ones in .jpg format have name with space instead of "-", but in /images/ directory where all images are located they have "-"...
1
vote
1answer
56 views

Adding/removing some tabs and line breaks in an HTML code using sed

I want to refine an HTML code using sed, as an extra refinement procedure after refining it using HTML Tidy, as HTML Tidy doesn’t look flexible enough for some requirements. I used this command to ...
1
vote
1answer
55 views

BASH Script for logging in to Website

I've tried many solutions provided here in other forums and websites. Like this: #curl -A "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" \ #--cookie cjar --cookie-jar cjar \ #--data "username=name" ...
2
votes
2answers
55 views

Get apache to serve Markdown as HTML

Like many people, I prefer writing in Markdown - is there a mod_markdown or similar that will let Apache serve Markdown content but render as HTML ?
6
votes
3answers
88 views

sed/awk subscript numbers in chemical formulas using markup tags

I have hundreds of text files that include chemical formulas together with narrative including numerical values. The formulas are always preceded by white spaces but can be followed by white spaces, ...
0
votes
1answer
40 views

Easy Way to Wrap CRON Output in HTML PRE?

I use Gmail and every so often I have to hack it back in that text/plain email should be rendered in a monospace font. This makes it much easier to skim system-generated reports, &c. The problems ...
1
vote
2answers
130 views

Bash script to get all mp3 file from a html page

I was thinking in a way to get .mp3 files from a html page, manually i did get using wget wget http://www.podcastfrancaisfacile.com/wp-content/uploads/files/question-prix.mp3 So, i try this for an ...
0
votes
1answer
101 views

How can I get rid of the byte-order mark 

I have created an html webpage when I run it at the bottom of the page there's some unwanted characters uncoding . I tried to get rid of it through vi using set nobomb but it still appears in the ...
1
vote
1answer
79 views

How to pipe html into lynx?

I am testing some ajax call from the console. I like get rid of the meta-information noise that is html markup and just read the content, hence I like to pipe it into a terminal browser, e.g. lynx. ...
1
vote
0answers
67 views

How to use wget to process a html file before downloading a file [closed]

I'm trying to write a bash script to download a certain file. In order to download the file, you need to be logged in, first to access he file, secondly because the file is generated with you ...
0
votes
2answers
100 views

parse HTML in Bash (when grep just isn't enough)

This is driving me insane, as I'm sure there must be some program doing the job but I just can't find it. To be noted, I'd be on ARM/Raspberry so unfortunately Xidel is not an option here, unless ...
1
vote
3answers
53 views

Joining two parts together to make a single script

I'm trying to create a script to do the following: extract the magnet link from a lynx bookmark and then use it as part of a curl command. like this: curl http://my_ip:my_port_number/startdownload/...
4
votes
2answers
144 views

Bash script to extract some information from Ebay HTML pages

I would like to filter the output of a search on ebay which I've exported to a text file. There are a number of results in the search but I've included just one example at the bottom of this post as ...
-1
votes
1answer
78 views

Mutt : render html within mutt

I wan't to render html within mutt but I haven't succeed configuring it yet. I wan't to use w3m so my .mailcap looks like : text/html; "$BROWSER" %s &; test=test -n "$DISPLAY"; needsterminal; ...
0
votes
0answers
17 views

Desktop Firefox to view html files in Linux VM

I have Fedora client running in Oracle VM on my Windows 7 laptop. I have putty running on local desktop to connect to terminal on Fedora VM. I have created x.html under /home/uid/bin on Fedora VM ...
0
votes
1answer
28 views

i want to remove tag in xml when it is repeating multiple times

I want to comment particular tag with particular value from xml when it is repeating multiple times example: <t1> <t2>hi<t2/> <t1/> <t1> <t2>hello<t2/> <...
0
votes
1answer
31 views

How to convert the manpages of git and its subcommands into a pdf file?

There are two places that I can find manpages of git and its subcommands: https://git-scm.com/docs, and the links to all the git subcommands https://www.kernel.org/pub/software/scm/git/docs/git.html,...
0
votes
1answer
46 views

Letting HTML file act as URL with wget

If you want to get straight to the question, please skip all the way down to the bolded and italicized question past the code. Intro: I am experiencing problems with wget and html files. I am using ...
3
votes
4answers
134 views

Extracting strings from between special characters

I have a large text file created from combining lots of html files. cat *.html > all_html_files.txt Inside the text file are specfic strings that I want to extract to another text file. For ...
1
vote
1answer
91 views

Add text between multiple lines with sed if previous line does not match pattern

I'm struggling to add <dl> tags around a definition list with sed, and perhaps there is an easier way to do it (I'd love to know). I would like to search a file for any lines that contain a <...
5
votes
5answers
1k views

How do I convert Linux man pages to HTML without using groff?

I would like to convert some Linux man pages to HTML without using groff. My prejudice against groff is due to some PNG rendering issues it is giving me that seems to be localized to Sabayon (as these ...
0
votes
2answers
76 views

How to set up a local web server to serve up a local html page

I want to work with local web pages using the seleniumIDE It requires URL's. So I'd like to set up localhost, 127.0.0.1 I don't need anyone else or network access to it, however it would be ideal if ...
0
votes
1answer
45 views

Non-English letters in html2text?

I'm making a script which uses html2text, however, it can't handle non-English letters. I'd like to use letters such as á, é í, ó ú, æ, ø, ö, ä, ð, þ. It just shows questions marks instead of the ...
1
vote
1answer
56 views

How to export Google Alerts citations?

I have several months of Google Alerts in my email and I would like to share them somewhere on the web (for instance on a MediaWiki wiki). Is there an easy way to export them? The alerts contain HTML ...
1
vote
1answer
150 views

Text extraction from HTML page

I am using xidel command to extract text from html page. Here is my code xidel http://www.ip-adress.com/ip_tracer/8.8.8.8 --extract "<table> <tbody> <tr> <td> <...
0
votes
0answers
149 views

extracting text from HTML

I have this page http://www.ip-tracker.org/locator/ip-lookup.php?ip=8.8.8.8. I wanna extract text from html page particularly table heading (th) and table data (td). For Example --> Country: United ...
2
votes
3answers
509 views

Shellscript to remove particular tags in HTML file

Can anyone please guide me with writing Shell Script command for following scenario. I have an html file with all tags in a single line like this, <html><head></head><body>&...
0
votes
1answer
140 views

sed html parsing

I have to parse HTML to change text between two brackets that are not HTML code back to &lt; or &gt;. Here an example of my HTML code that I have to replace: <content:encoded><![...
-1
votes
2answers
68 views

combine two file data having same column 1 but different col 2 values [duplicate]

Need to combine two file data having same column 1 but different column 2 values. One file has data: AP 3492 BJ 4995 GJ 3810 MH 5800 UK ...
2
votes
1answer
78 views

Sed: replace text keeping digit occurrence

I have some text like: Blablabla <b>[intlink id="</b>2204<b>" type="page"] Blalala I want replace it for remove the </b> and <b>, keeping the id="number". So it should ...
1
vote
1answer
158 views

Script to remove certain span elements from an HTML file

I want to write a script that completely removes every instance of a particular span class from a given HTML file. For example, if my undesired span class is "foo" then running my script on the file ...
1
vote
1answer
176 views

How can I replace the <title> element in many HTML files?

My directory ~/foo contains many HTML files. Each one has a different unwanted title element. That is, each file contains the code <title>something unwanted</title> Many of these files ...
0
votes
2answers
140 views

Bash script to edit lots of html documents

I have a directory with many HTML documents. Most of them contain the codeblock .org-link { /* org-link */ color: #b58900; font-weight: bold; text-decoration: ...
0
votes
2answers
203 views

Search the value from a dynamic file and pass to a variable in HTML [closed]

I have the following file below with the format and I want to pass the value to HTML BE64533-A0E1-4F98-A91F-02C1D0 column=ABC_Received:ABC_Structure_Type, timestamp=1439978656596, **value=ASCII** ...
0
votes
2answers
300 views

AWK, SED or GREP for extracting data from HTML file

Can anyone tell me which is best to use to extract the following data from a html file which was received with curl . <script>document.getElementById("test-summary").innerHTML = "<strong>...
1
vote
2answers
77 views

Ubuntu SELinux - why different types for files var_t vs file_t

I have Ubuntu 14.04 running on two vm's. I have have permissive SELinux enabled on both. On system1, all of my files + linked directories in /var/www/html are marked as var_t and the symbolic linked ...
0
votes
2answers
381 views

convert a html book to a pdf file?

How can I convert a html book (consisting of a number of html files linked to each other) to a pdf file on Ubuntu? Hope the resulting pdf file can have bookmarks according to the structures of the ...
0
votes
1answer
364 views

Convert particular lines in a text file to bold [closed]

I have a text file with 100 lines in it. I want to convert particular lines, lets say line1, line6 , line27, line 48, line 86, line99 to bold. I am using solaris 5.10, with KSH. Is there a way I can ...
0
votes
0answers
807 views

Can't download all of specified webpages by using wkhtmltopdf

i try to download the webpages specified as a list of urls in a text file urls, and convert and merge them to a single pdf file, by running: $ wkhtmltopdf $(cat urls) all.pdf Loading pages (1/6) ...
1
vote
1answer
391 views

Merge multiple HTML files in reverse order?

I have multiple HTML files for this book. I am trying to add them in opposite order. I've tried: cat *.html >> merge.html I've tried to use tac on the list of downloaded files by time to no ...
0
votes
1answer
253 views

Multiple html files in Email body as seprate table blocks

I am trying to generate and send html files by attaching to email body. I tried using awk for generating and sending one file. eg. the input file MARTINI has these records: 1554894,2015-04-16,00:21:...
0
votes
1answer
75 views

How can I regex specific links from rss content in yahoo pipes?

From a RSS content I'd like to remove everything except specified href links Example: <div class='text'> <div class="center"> <b><a rel="nofollow" target="_blank" href="http://...
2
votes
2answers
69 views

Strip attribute name from result set?

I have a HTML document that looks (when oversimplified) like this: <html> <body> <a href="...">...</a> <a href="...">...</a> <a href="...">...&...
0
votes
1answer
294 views

Open Source Web Form Builder With Save to Spreadsheet or Database

Does anyone know of any open source tools that do essentially what Google Forms does. My company decided I could not use google forms because they did not want their info in the cloud, but for the ...
0
votes
1answer
148 views

How to replace tab's indent by space's indent with web-mode in Emacs

I don't want to use tabs for indent, so I add (setq-default indent-tabs-mode nil) in my emacs init file. With the setting indents are created by spaces in web-mode, but it doesn't change already ...