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

0
votes
1answer
22 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
46 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
24 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
36 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
35 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
19 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
37 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
73 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
57 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
143 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
117 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
67 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
68 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" ...
0
votes
0answers
29 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
138 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
20 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
92 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
38 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
764 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 ...
0
votes
0answers
72 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/> ...
27
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 ...
0
votes
3answers
367 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
118 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
164 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 ...
2
votes
3answers
891 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
28 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
123 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
285 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
66 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
179 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
194 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 ...
1
vote
0answers
126 views

How to paste an HTML table into Libre Office Calc without losing structure

I want to paste an HTML table into Libre Office Calc. The HTML table rows contain images (in column 1) that should stay with their appropriate row. However, when I paste my HTML into Calc, the images ...
1
vote
0answers
101 views

Sorted HTML table

I need a very quick and easy way to sort HTML tables. The table rows contain images that should stay with their appropriate row. I tried pasting my HTML into Libre Office calc, but the images are not ...
0
votes
2answers
239 views

Thunderbird: Override colors in received HTML emails

I need to override default colors in received HTML emails. I have followed this Howto, and modified my userContent.css accordingly. Basically, I need white text on dark background: $ cat ...
2
votes
3answers
509 views

bash - extract filenames from html file containing multiple links

I have downloaded an html file autogenerated by a script on a webpage. The file contains multiple links, including links to images I am trying to extract the full names of the images, for example ...
1
vote
1answer
136 views

Does Kate support HTML5?

I am editing a long HTML document in Kate, and I'd love to be able to "close" the parts I'm not currently working on. But this is a new document, and the highest level of modularization uses section, ...
1
vote
1answer
232 views

Extract Values from HTML via HTML parser [duplicate]

I initially asked about a way to use grep/awk directly from an HTML file. I got some feedback but I see that people did not have the whole HTML and so the solutions suggested failed. Some have ...
1
vote
2answers
870 views

Extract Values from simple html file via grep/awk

I have another grep/awk/sed issue within the attached HTML code below. Given is a simple HTML file with table inside. The HTML is generated by a smart meter (household energy meter). Inside the html ...
0
votes
1answer
133 views

wget changing image name from within page

The image is generated once every n minutes, and I want to get each of these to my local directory. I had no success in getting the png-image using the command: wget -r -l1 --no-parent -A.png ...
0
votes
2answers
231 views

How can I grep for broken HTML tags?

I want to grep through all my HTML files and see if I have any bad tags there, example <br> , <hr> and so on, that is the I want to see what tags are not closed in the HTML file. for ...
2
votes
1answer
492 views

how to use html tidy on Nginx

I just installed HTML tidy using the following command line: sudo apt-get install php5-tidy yet I have no idea how to use it because I thought it is an auto process that can do things by itself ...
2
votes
1answer
431 views

ability to view browser view for html file from vim

Is there a plugin / program / key binding that will let me preview html files that I am editing in vim in a browser? Background: I have abandoned traditional full-feature editors and IDE's (of which ...
2
votes
1answer
531 views

Trying to get a dynamic page with wget without success

I am using this command to get a page and all its images and javascripts on iTunes with wget. All I want is this page and all its images and scripts. wget -kKErpNF --no-check-certificate ...
0
votes
0answers
155 views

Use Rsync with HTTP

Is it possible to use rsync with an HTML POST request? If so what would the rsync command look like? For example let's say using HTML5 I have this (bear with me going back to linux stuff): <form ...
2
votes
2answers
49 views

How can I automatically create a document that allows me to compare a list of 4 .png files side-by-side?

So I have a list of 4 .png files, and I'd like to auto-pipe this to some document that puts them all side-by-side for easy comparison. I'm thinking of automatically putting them in a HTML file. So ...
1
vote
3answers
998 views

Extract multiple line string from HTML file using specific tags

I need to extract the string which are starting with the tag <span class="style530"> and ending with </span> tag. I used sed command but didn't get desired result. Below is sample code: ...
2
votes
1answer
202 views

redirection failing for CGI program

I'm trying to redirect the contents of command output to a file in a CGI program. The issue for me is that the output file is not getting created. The CGI Code snippet is as follows: #!/bin/bash ...
2
votes
1answer
3k views

500:Internal Server Error from CGI program

I am trying to write a CGI Program which is invoked from a HTML page . The CGI code snippet is as follows: #!/bin/bash echo "Content-type: text/html" echo "<html>" echo "<body>" ...
2
votes
2answers
925 views

GUI library or Window Manager using HTML [closed]

Ok... You want some clarity? Being a programmer this sort of question always has conditionals. Are there any DE's or (more generally) DE backends that support building (scripting) or rather modding ...
1
vote
1answer
629 views

Extract text from source code website

I need extract text with a bash script from a website in HTML, I used this solution but doesn't work fine for me, because I must edit and format the output text. I need the text between the tag: ...