Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [html]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
24 views

inplace file replacement for nth pattern match

I have a file with many lines but I can summarise my requirements like below: <DT><A HREF="http://127.0.0.1:1234/ABCDE/wp-admin/index.cfm?event&msg=secure&fr=sp">...
-1
votes
1answer
33 views

How to Search & Replace a phrase in many HTML files at once? (Using a terminal)

How to delete the words "display:none;" from 100 html files at once?
1
vote
0answers
28 views

bash script - Add string to cell in html table IF title of row is already in

I have a bash script that checks on the status of certain processes and aspects of multiple servers and i am pushing the results to an html file to display in an email. Some servers have as many as 6 ...
0
votes
0answers
34 views

How to draw HTML table having contain result of SQL query and send to mail in Shell script

I want to draw HTML table contain record of SQL query and send to mail in shell script. Here is the shell script:- #!/usr/bin/ksh out=$(for id in 1 2 3 4 do sqlplus -s <user>/<...
0
votes
0answers
15 views

how to parse html in multipart attachement mail in mutt mail client?

my email client is mutt. and I am using elinks to view html in my emails and this is my mailcap: text/html; elinks %s; nametemplate=%s.html text/html; elinks -dump %s; nametemplate=%s.html; ...
0
votes
0answers
37 views

Bash script - Add string 123 to file, later in same script if string 123 is present then dont add

I have a bash script that inputs lines into a html file, this is done in a loop through an array. Later in the script i loop through a different array that may contain the same values as in the ...
1
vote
1answer
38 views

markdown table to html table converter in CentOS

I am looking for a way to convert a markdown table into a html table using the shell. I know this tool: https://linux.die.net/man/1/markdown This does a great job and is exactly what I am looking for, ...
18
votes
6answers
3k views

Is there a command-line tool for converting html files to pdf? [duplicate]

I would like to install a command line tool within a Docker image in order to quickly convert *html files into *pdf files. I am surprised there is not a Unix tool to do something like this.
1
vote
1answer
46 views

MIME type text/html: how & where defined?

I've asked a related question on AskUbuntu (How to open *.htm differently than *.html?) with no interest yet, so I'm addressing the same issue with a more fundamental question. I cannot find how and ...
1
vote
0answers
20 views

How to make redirect go to alternate web page if Shift key is being held?

I am trying to make a secret alternate redirect on a web page that redirects to an alternate page when holding down the key, otherwise it redirects to the regular redirect page. Example/Clarification:...
0
votes
0answers
8 views

How to use PHP 5 CLI server

I am PHP beginner. I need to add php script in .html file. From what i understand, PHP is a server script. Hence, it need to have web server to execute. From the online source, most of the webserver ...
1
vote
1answer
45 views

Wanted: GUI interface to show status of services on many servers

We have 763 Red Hat 7.2 Linux machines with systemd, systemctl and the presto service: systemctl status presto.service ● presto.service - Perforce Server Loaded: loaded (/etc/systemd/system/...
0
votes
0answers
157 views

How to install PHP simple HTML DOM Parser on Linux (Debian)?

I have just started learning web scraping, and so far, I have understood that I need to install a library called simple_html_dom. Everywhere I have seen for now, people download it from sourceforge ...
3
votes
2answers
86 views

Parsing CSV with AWK to Produce HTML Output

I have a data file with rows of comma-separated fields like this: United Kingdom, GB, +44 and I want to produce the following output for each line in the file: <option value="GB">United ...
0
votes
0answers
9 views

Can I create a Eclipse or Intellij project via a weblink?

I'm looking for a way to create a new Eclipse or IntelliJ project via a link or a button on a website. So for example a link where I can pass a pre-defined name for the project and all that stuff. Is ...
-1
votes
1answer
80 views

How do I exclude pre tags from HTML minification using sed?

I am trying to minify HTML using sed My problem: I don't want to minify anything inside <pre> tags, but can't make it work.. Here is what I am using: sed ':a;N;$!ba;s@>\s*<@><@g' $...
0
votes
0answers
38 views

How can I make wget rename files based on link name?

Everything I'm finding is based on URL, but I want the opposite. I have an html index with a list of links. The links are named like Apples, oranges, grapes, bananas. The files associated with those ...
1
vote
2answers
54 views

Howto find the size of a remote http/https directory (non recursively) using a given regexp from the command line

I'm trying to find the size of a remote http/https directory (non recursively) using a given regexp (\.mp4) from the command line, is there a tool to do so or do I need to parse the index.html ? ...
0
votes
3answers
68 views

extract specific words and its data from html/xml file

sample input is <bre rt="1600" et="1550794901464" st="1550794899864" tid="8390500116294391399" mh="N" cn="" lc="" ts="N/A" cidc="" IDC="" eidc="BRE-S-TRA-0085418501"/> <r1> &...
-1
votes
2answers
51 views

Return the next 50 characters after a string is found in a file

I'm pretty terrible with regex and searching for patterns, so I don't really know where to start. I need to find <td id="latest_button"> in test.txt and return the next 50 characters after it. ...
1
vote
1answer
73 views

Placing the last line first in each html <ul> with sed

I try to place the line "name: *****" just after the corresponding (innermost containing) "ul" each time an "ul" appears, so that it looks like this: Before: <ul> <ul> <li ...
0
votes
1answer
172 views

bash script to replace script tags in html with their content

is it possible to use sed to match the source of a script tag within html (which is not valid xml) and replace the whole match with the files' contents? e.g. say the html contained <link rel='...
0
votes
3answers
49 views

Looking for bash script which can insert input from 2 files

I have 2 files with different data. How can I put data in those files and print it? I was trying for loop, but it is only good for 1 variable. FileA https://xyx.com/test-posts/ https://www.abc.com/...
0
votes
1answer
10 views

Why does the help for some applications open in Seamonkey composer?

I am running Linux in the form of openSuse Leap 15.0 with KDE Plasma 5.12.6 and have applied patches regularly. If I run some applications, for example Gimp (2.8.22), and ask for help, it starts ...
1
vote
4answers
308 views

sed find and replace html tag

I need find and replace in a md file (plain text) <span class="symbol">&#58771;</span> with this: [&#58771;]{custom-style="symbol"} I tried many times, f.e. sed -i -e 's/\(&...
2
votes
0answers
194 views

how to output html to a file with xmllint?

How do I get xmllint to output to a file? thufir@dur:~/xmllint$ thufir@dur:~/xmllint$ xmllint --html http://www.skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450 --xpath '//div[@class = "tides"]' - ...
2
votes
1answer
519 views

HTML plugin for Claws-Mail 3.16?

I recently upgraded my Claws-Mail software to 3.16 (64-bit). I now find that it no longer has an HTML plugin (Fancy, Dillo, etc). Does anyone know of a plugin to display the HTML in email in Claws-...
0
votes
2answers
1k views

Sending mail with attachment(image) using sendmail in Linux(ksh)

I am trying to send a mail with below command. I am sending this command from sqr to the command line, which is working fine. $FilePath_mail have To,From and other information along with mail body ...
0
votes
1answer
33 views

Finding and replacing text when there are custom elements within [duplicate]

I have about 450 html files I need to edit. I have the directory they all are in, so that narrows things down from the perspective of searching. What needs to be changed is a bit of known text, some ...
0
votes
1answer
31 views

Filter on html tag

With html bookmark saved from chrome or others, frequently exported as html file that comes with <a href tag that I'd like to filter and arrange: <a href="https://<a-web-site>">Title ...
0
votes
1answer
256 views

I need to replace a string in html sed is not working

Here is the code in the shell script I have used sed 's/xyxx/$date1/' /u001/Scripts/abc.html > /u001/Scripts/abc.html The code is trying to print HTML tags inside AWK command nawk 'BEGIN{ ...
1
vote
1answer
533 views

How to get frame source using wget?

I am trying to get html data from servicenow website. It's using frames and I would like to extract the frame source using wget. I am unable to find the option/flags to do this job. I am only able to ...
0
votes
1answer
61 views

How to extract a pattern of multiple lines

I am wondering how to extract a pattern of multiple lines, especially when this pattern is repeating in the text. The text looks like this: <tr> <td>Wife</td> <td>Pilialo</...
0
votes
2answers
453 views

Using bash to replace html character entities in the xml file

I have a string like this in xml file: &lt;h3&gt;Styled here with: &lt;a href="$url('Product-Show','pid','107723102')$"&gt;FRS blo&lt;/a&gt;, &lt;a href="$url('Product-...
0
votes
1answer
362 views

Changing the background of a column cell value of an based on the Value (HTML Reported created by awk) [duplicate]

I have created an HTML Table (Data from the DB) using awk. I am stuck at creating the Background of a column, depending on the cell value. Not much idea about css. I am abble to change the ont bbased ...
0
votes
0answers
201 views

Running a script as a webpage

So I've got basically the most rudimentary understanding of how webpages work, I installed httpd, apache, php and some other stuff, and now if I put files in /var/www/html people can access them by ...
1
vote
1answer
1k views

Awk select columns between html table data

I'm trying to extract data between <td></td> tags, but if i use something like awk -F"<td>" {' $1 ":" $2 '} it will output the remaining html data after column 1 and column 2, ...
4
votes
4answers
705 views

Use sed to encapsulate the first word of each paragraph with <i> </i>?

So obviously I am trying italicize the first word of each paragraph in a huge document. I think its relatively easy to add the prefix but how do I delineate just the first word for the postfix instead ...
1
vote
2answers
492 views

Change the background color (html format) if a number is less than a threshold

I have the folowing file which is called test.html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="SQL*Plus ...
5
votes
1answer
125 views

The right tool to reverse the sorting order of thousands of elements in HTML file [closed]

I have a HTML file containing thousands of <div class='date'></div><ul>...</ul> blocks of code like below: <!DOCTYPE html> <html> <head> </head&...
0
votes
0answers
118 views

How to install HTML5/JavaScript to Netbeans?

I installed the NetBeans Connector plugin to Chromium on my MacBook. That worked perfectly. I could create new projects in HTML5/Javascript. I tried to do the same on my Linux Mint 18.3 computer. But ...
0
votes
2answers
923 views

replace file inside html tags using bash

I have a html file where I need to replace text inside the para tag with the capital letters of the same like {para}hi{\para} to {para}HI{\para} x=`cat $1 | grep -o '<p>.*</p>' | tr '[:...
1
vote
1answer
127 views

Mass convert thousands of downloaded (with wget) HTML documents to DOCX

I would like to process and convert all the files downloaded from wget in HTML format from a URL. I want to convert a complete web page to DOCX format. We are talking about 3000 HTML documents ...
1
vote
2answers
412 views

Render mixture plain text and HTML output from a command in a terminal

I am using SDcv, Collins Cobuild 5 is it's dictionary, which output html, like: # czxyl @ archlinux in ~/Dropbox [12:57:27] C:16 $ sdcv hello Found 7 items, similar to hello. --&...
0
votes
1answer
263 views

Remove <div> blocks matching a string from a huge html file

I am on Mac and I want to remove multiple <div> blocks from a html file that match a certain string. I tried to use sed for it the following way, but failed: First I escaped all the symbols in ...
1
vote
2answers
2k views

How to insert text between two set patterns with sed?

I need to insert text between two set patterns in a large set of files. I need to change every line with this form: <a href="/entry/someFile"> To this: <a href="/entry/someFile.xhtml"> ...
0
votes
1answer
48 views

Display a table from a website

I have an idea for what I want to do, but am not sure exactly what to do. I want to curl http://www.bostonglobe.com/sports/tvradio/listings then somehow display a table on this page. The table is <...
0
votes
1answer
71 views

Text Processing: How to sort list by date delimited by a string

I want to sort contents of file.txt by date. The date to sort is in the fourth table data <td></td> tag E.g. Content of file.txt: <tr><td>some_name_here</td><td>...
0
votes
0answers
710 views

Multiple html files in message body-mailx

I'm using pandas to get csv to html #!/usr/bin/python import pandas as pd import sys import json sys.stdout = open('output.html','wt') df = pd.read_csv('users.csv') print(df.to_html()) For another ...
-1
votes
3answers
147 views

Download the part of the web page [duplicate]

I would like to "parse" some list of web pages (html), the "parsing" is only about redirecting what's between <title> </title> tags to some specific files. Firstly I did for cycle with ...