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
3answers
35 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 ...
3
votes
2answers
54 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
30 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
10 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
22 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
21 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 ...
1
vote
1answer
31 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 ...
4
votes
4answers
111 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 ...
2
votes
1answer
48 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 ...
4
votes
5answers
581 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
42 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
26 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
27 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
77 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> ...
1
vote
0answers
66 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
340 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, ...
0
votes
1answer
69 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: ...
-1
votes
2answers
44 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
60 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
92 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
110 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
65 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
127 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
198 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 = ...
0
votes
1answer
25 views

Apache2.4- how to serve file as html

I have an apache2.4 server. On some page, I have a link to a log file. I would like to show the file content in a browser when the link is clicked, rather that serving the file do download.
1
vote
2answers
49 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
146 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
223 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
525 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
262 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
132 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: ...
0
votes
1answer
73 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" ...
2
votes
2answers
53 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 ...
0
votes
1answer
225 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
0answers
21 views

How to check that an HTML element is “serialized completely within the first 1024 bytes of the document”?

In HTML5, the character encoding of the document can be specified in a meta element with the charset attribute (e.g. <meta charset="utf-8">), under this restriction: The element containing ...
0
votes
1answer
137 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 ...
0
votes
2answers
49 views

How to specify the file type in a hard link [closed]

Does anyone know how to specify the file type of a hard link? Is this even possible? For example, I want to link to an HTML file (with content type text/html) in my website directory, so I used ln ...
0
votes
3answers
1k views

How to delete html tags from a file using sed ?

I have a file that is mixed with both normal text I need and html-tags. I know that with REGEX it is possible to recognize html tags and with sed one can swap those for an empty string, but I do not ...
1
vote
1answer
128 views

Force lynx or elinks to interpret spaces and line breaks

Consider the following commands, and their results : $ echo "<br/> <br/>a<br/>b<br/>c<br/><br/> <br/>"|lynx -dump -stdin a b c $ echo "<br/> ...
28
votes
4answers
3k views

Is there a simple Bash tool which can quickly render basic HTML?

From time to time I need to do a simple task where I output basic HTML into the console. I'd like to have it minimally rendered, to make it easier to read at a glance. Is there a utility which can ...
1
vote
3answers
692 views

Simple way to extract value from HTML

I have a very simple html file with a value inside. Value is 57 in this case. <eta version="1.0"><value uri="/user/var/48/10391/0/0/12528" strValue="57" unit="%" decPlaces="0" ...
2
votes
0answers
155 views

How do I run webm video file in firefox using HTML5 on linux?

I am using apache server on linux and want to run a .webm video file. I have .webm video file which i am trying to run in firefox (V 12.0) using HTML5 but the browser is showing as "no video with ...
0
votes
1answer
277 views

Shell script equivelent to PHP $_POST

For example and learning purposes, I have a webpage that uses POST method to submit a text field. I have a server running script (bash) that I want to display what the "Query_string" is. I'm not ...
3
votes
3answers
2k views

Display hostname in static HTML page on uhttpd

I have a docker container running uhttpd and serving a static HTML page. How can I dynamically insert the hostname of the container into the static HTML page? I want to keep the container as ...
0
votes
1answer
35 views

Is there some html annotation tool for adding annotations to downloaded html files?

I would like to add annotations (such as underlines, text comment, circle or square a text region, ...) to downloaded html files. Is there some WYSIWYG html annotation tool (for Linux) for that ...
1
vote
0answers
152 views

Can htmldoc create multi-level pdf bookmarks?

I downloaded an online html book (http://www.cim.mcgill.ca/~franco/OpSys-304-427/lecture-notes/lecture-notes.html), by the following command wget -r -np -nH --cut-dirs=3 -p -k ...
0
votes
1answer
364 views

Extract values from HTML Files

I have 2 HTML files, where part of the content looks like this: In FILE1: <td width="48%" align="right" valign="top"> <b>mom. Wirkleistung P+ tot.: </b><br> <b>mom. ...
0
votes
1answer
81 views

How to configure Apache Rivet on openSUSE with YaST2

I need to configure my Apache web local server to view Tcl Apache Rivet web dynamic applications. The problem I run into is my browser forces me to download the file, so Apache doesn't interpret the ...
1
vote
1answer
245 views

Convert linked html files into a pdf file?

I would like to convert an online book (linked html files) into a pdf file. I tried the two-step way in http://kmkeen.com/mirror/2009-02-05-14-00-00.html First, download the html files by wget -nd ...
4
votes
2answers
251 views

Can emacs render downloaded html files?

From Firefox, I downloaded a .html file, with a directory with name ended in _files, by specifying "Webpage, Complete". When open the .html in emacs, even under html-mode, only the source of the html ...