We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
0answers
204 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"]' - ...
1
vote
1answer
130 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 ...
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
32 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
337 views

What does this sed command do? How to change it?

I do not understand what does this command do: grep '<span id="geodata" class="geo">[-0-9.]*; [-0-9.]*</span>' -R articles/ --only-matching | sed 's@articles//@@' | sed 's@:<span id=....
0
votes
1answer
289 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{ ...
0
votes
2answers
482 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-...
-1
votes
1answer
254 views

Web Desktop Environment [closed]

I have a mad idea, I want to make my own Linux distro (maybe on *buntu system) with a DE which I could develop with HTML5, CSS and JS. To start, I just want to make my DE a web page (I don't talk ...
0
votes
1answer
94 views

Unix program for random image generator [closed]

I want to create a basic program in Unix that would display in HTML a random photo from a group of photos I selected and each time it is generated a different one would be displayed, hence random. ...
1
vote
1answer
588 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
64 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
1answer
365 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 ...
5
votes
4answers
3k 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
1answer
323 views

how to massage or format html in order to parse with xmstarlet?

Do I first need to run html in the wild through something like jsoup? Not to make it valid in a human sense, might turn it to gibberish, but at least so that xmlstarlet can process the file? ...
0
votes
0answers
224 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
79 views

space in time column causing problem in formatting html file in script

I am in the process of creating an automated mail where in the body of the mail data should be displayed in a table format. I did some extent generate a table format in the body of mail, but I am ...
1
vote
2answers
516 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 ...
0
votes
1answer
1k views

Multiple html files in Email body as separate 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:...
3
votes
1answer
343 views

Using wget or another command, how to download now but convert links later?

The useful option wget --convert-links or wget -k makes "links in downloaded HTML or CSS point to local files." It makes two passes: Pass 1: download files. Pass 2: convert links. I want to do pass ...
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, ...
5
votes
1answer
127 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
121 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
954 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
2answers
429 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
283 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 ...
23
votes
4answers
24k views

How to parse hundred html source code files in shell?

I have a couple of hundred html source code files. I need to extract the contents of a particular <div> element from each of these file so I'm going to write a script to loop through each file. ...
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
75 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
717 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
150 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 ...
0
votes
5answers
102 views

Rename a HTML file based on the content of a tag

I have a lot of html files that I want to rename according to the content of the tag h1. Any suggestion on how to do it on bash? Example of a file: <!DOCTYPE html><html lang="pt-BR">&...
2
votes
2answers
6k views

Send html format mail stored in variable using sendmail command

Below script works fine in my Linux server. ( echo "From: name@xyz.com"; echo "To: name2@xyz.com"; echo "Subject: Test Subject"; echo "Content-Type: text/html"; echo "MIME-Version: 1.0"; echo ""; ...
1
vote
2answers
3k views

Grep only for content between tags

I have an html-type of file that somewhere includes a tag as follows: <Currentnumber>0.3.5</Currentnumber> How do I catch in a variable the value 0.3.5 and only this? I have come as far ...
2
votes
3answers
1k views

Web front-end to find/grep/ack

In my lab, we are trying to build a web that allows the user to enter queries for find, ack, grep on a specific directory. The web would return an HTML with a table of a list of clickable files (click ...
0
votes
3answers
34 views

Parsing: extract a version from a html line

I would like to extract version number from this string: <a href="/url/version/tree/1.0.1alpha11" class="css-truncate"> Note that '/url/version/tree/' may change (ex: from /url/version/tree/ ...
0
votes
1answer
26 views

Do I need port 993 to get email in a WordPress site?

Do I need port 993 unfiltered to get emails from a WordPress site? For example, in WordPress I've installed a plugin called "Contact form 7" (CF7) that gives you a basic contact form. In the plugin ...
2
votes
5answers
1k views

Need to extract a number from HTML

Given this: <p>Currencies fluctuate every day. The rate shown is effective for transactions submitted to Visa on <strong>February 5, 2017</strong>, with a bank foreign transaction ...
-1
votes
3answers
282 views

How to get URL's from a JSON page where the user searches a word and then appears all the websites with that word?

I am trying to use a script in bash shell that returns the present urls on a certain webpage... What I have is a script that returns all URLs but you need to put in the code the link that you want, ...
-1
votes
1answer
734 views

sed to insert a html values in a specific line number

I was trying to insert a values in between html tags in a specific line number. Also it should ignore whitespaces at the beginning. Example :- line 15 should be replaced <john></john> ...
1
vote
1answer
612 views

generate html table of content from multiple html files

This is not specifically a Linux question. But I was wondering if I can get this done in BASH. I have multiple HTML files in a folder and I want to generate a HTML table of content. So for file1.html ...
1
vote
1answer
375 views

How can I find subdomains of splunk.com using http reponse?

I have sent http request to the "splunk.com" with usin that command curl -L splunk.com I got html codes. I want to find subdomains of that website by parsing the html codes.
1
vote
1answer
1k views

Make all urls in a page absolute from the command line

I like using curl and the command line to process html pages. Relative urls are a pain. Is there some easy utility to make all relative urls absolute? Ideally this would look something like ...
0
votes
1answer
3k views

Mutt : render html within mutt [closed]

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

How to correctly remove a footer with hxremove?

I try to remove a footer section in multiple html files. For simplicity I started with just one file. The file contains: <footer id="footer"> ... </footer> I tried hxremove footer foo....
-1
votes
1answer
148 views

How to run hxnormalize on multiple files?

I have folder with multiple html files and I'd like to run hxnormalize on all of them and write the results back into the files. I already tried hxnormalize -e *.html and cat *.html | hxnormalize -e ...
2
votes
2answers
3k views

Formatting file in HTML output

I have a little script that will format a log file with all failed logins for users on the system. I have written the script to output the data in a text file in this format (two columns with the ...
2
votes
2answers
208 views

Best way to insert blocks of HTML in bash

I have been working on a script that collects data about servers and formats them into a nice html email report. I have been using sed to replace values in a html template so far and that has been ...
-2
votes
2answers
216 views

Read file until match pattern [closed]

I´m reading a file and I would like to get the info until I found a match. So having the file here https://ufile.io/182kx I would like to have the json info from lastActiveTimes: until I found ,...