Skip to main content

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
0 votes
1 answer
64 views

curl webpage and convert to markdown

having a dilemma with downloading webpages and converting them to markdown, for example: F=$(curl -O --silent https://www.guru3d.com/story/msi-teases-spatium-m560-ssd-with-innovative-nonmetallic-vc-...
Ve-Khan's user avatar
1 vote
1 answer
61 views

How can I include any content in the sed replace command? [duplicate]

I want to be able to handle any type of content stored into the bash variable ${CONTENT}, to be used as sed replacement text into another content, no matter if there are quotation marks, single quotes ...
Harry McKenzie's user avatar
0 votes
1 answer
268 views

Is there a tool that preserves CSS formatting during HTML to PDF conversion?

I tried the options in Is there a script or tool that converts HTML to PDF? with command: pandoc documentation.html -o test.pdf --pdf-engine=xelatex but unfortunately they do not preserve the CSS ...
Harry McKenzie's user avatar
0 votes
3 answers
76 views

Edit inside an HTML tag with ed(1)

Consider my humble hello.html file, edited with mighty ed: $ ed hello.html 28 ,p <title>Hello world!</title> What's your general approach to edit inside that title HTML tag (bonus if you ...
mbigras's user avatar
  • 3,170
0 votes
0 answers
19 views

wget -I='/my/subpath,/my/subpath/*' (/my/subpath/) is excluded/not-included. Decided NOT to load it

I am trying to index some pages, corresponding to a Documentation. For that I wanted to wget --no-parent -r -l 5 https://developer.mozilla.org/en-US/docs/Web/JavaScript/ But as the request will be ...
freddie_ventura's user avatar
0 votes
2 answers
590 views

How can I fix a .tar.gz being downloaded as html?

I'm trying to download this file https://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-3.3.6/hadoop-3.3.6.tar.gz with wget. When I try to unpack it with tar I get the following error: gzip: stdin:...
HectorN's user avatar
  • 17
0 votes
1 answer
146 views

HTML telnet howto do

I have this code: <a href="telnet://localhost:33330"> <button>MUD</button> </a> <a href="telnet://localhost:24"> <button>Renegade BBS</button&...
ignatius's user avatar
  • 401
1 vote
0 answers
196 views

webpage / html as wallpaper

I tried komorebi which has this feature, but it changes the right click menu. I need something like lively wallpapers, which I use on windows, which doesnt change anything other than wallpaper, I'm ...
ANDuser's user avatar
  • 11
1 vote
3 answers
130 views

Command or script to delete all text in between two flags (html tags), in all files in a directory?

I have a directory full of html files that all have certain tags that I want deleted. For instance, in all files I have <p class="message"> </p> that I want gone, but the text ...
tei's user avatar
  • 13
0 votes
0 answers
513 views

Unix : How to convert HTML output from Shell script

How to display the sql query output to HTML table format output. am having shell script code to display output as html table format. and input is taken form sql query but am not getting the proper ...
Arthi's user avatar
  • 1
0 votes
1 answer
1k views

Specifying Character Sets With The Curl Command

I am attempting to extract a list of Chinese characters from https://lingua.mtsu.edu/chinese-computing/statistics/char/list.php?Which=MO to make a bash script. However, when I ran curl -o list.txt ...
James Norman 's user avatar
3 votes
2 answers
760 views

How do you get the individual outputs of grep?

I've seen grep thrown around in plenty of answers but never wrapped my head around it. Now that I am playing with trying to get the content within HTML tags of a locally saved page from the internet, ...
Tim50001's user avatar
-1 votes
1 answer
64 views

HTML symbols using shell

I have below code in unix where i need to convert COMPLETED pattern to sed 's/COMPLETED/<b><span style="color:green; font-weight:900;">\&#10145;<\/span><\/b>/' T....
Deep Mukherjee's user avatar
0 votes
2 answers
312 views

Using awk to pull multiple rows from a txt file and put it a single cell in html

Using this script to pull the command out lines from the text file and sending to email in table format. Need to know how to make the multiple rows (as single command has multiple lines of out) to put ...
user565847's user avatar
1 vote
4 answers
324 views

Insert one file's content into another file and replace it between pattern

I have a file1.html: <!doctype html> <html> <head> </head> <body> text <!-- start-replacing --> <p>more text1</p> <p>more text2</p> ...
R 9000's user avatar
  • 167
0 votes
1 answer
245 views

How can I use wget to download files through html links?

I am trying to use wget to download files from a database through a website. The provider is now only providing web access to what was previously an ftp server that I could easily use wget to download ...
BashN3wb's user avatar
2 votes
2 answers
143 views

How to change the size of inline pdf in Pandoc generated html files?

I'm using Pandoc to convert my mardown files to html files, html pages which are Github styled using Github.html5 from the Pandoc-goodies repo which is based on this other repo. I'm extremely pleased ...
Mike656's user avatar
  • 23
2 votes
1 answer
47 views

grab two strings by pattern from html

<DL><p> <DT><A HREF="https://www.gnu.org/gnu/" ADD_DATE="1650679138" ICON="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQC ...
testoflow's user avatar
  • 117
1 vote
1 answer
127 views

How to download latest MediaWiki from command line?

One can download MediaWiki via a web browser GUI here: https://www.mediawiki.org/wiki/Download The download link there isn't version agnostic (it changes any time a new version comes out), that makes ...
automation's user avatar
1 vote
1 answer
64 views

extract links from webpages which require interaction

I'm trying to figure out how, from a linux shell, to extract the links from a webpage in which the links appear only after clicking a button on the webpage, for example the "Assets" in ...
cipper's user avatar
  • 363
1 vote
1 answer
1k views

wget gives me html file instead of the target file

I'm using wget to download files but seemingly it gives HTML file instead of the file that I need. my wget version is GNU Wget 1.19.1 built on linux-gnu and here's the command line I used: wget --user=...
hollyjolly's user avatar
1 vote
2 answers
795 views

Bash script email doesn't ignore the html part in output

LE. I killed everything html related. Declared 2 variables R and G (for red and green). My mail shows the status [0;32mGLOBAL_STATUS = OK, obvious not in colours. If I comment my variables I receive ...
Lola's user avatar
  • 11
1 vote
0 answers
73 views

GNU Recode - Properly decode mixed HTML Character/Numeric encoded text?

I recently found GNU recode as something that can be used to decode HTML entities, however when looking at a piece of malware I noticed that it appears to be mixed HTML character/entity encoding, such ...
4oo4's user avatar
  • 153
0 votes
1 answer
537 views

Add information to HTML table with awk

I am trying to get the numerical and percentage outputs of free together in a table, which I send to myself per mail. I have tried to combine these into one table for quite a while, but nothing seems ...
user530909's user avatar
0 votes
1 answer
66 views

SED - Add URL prefix to random pdf filenames

I have an html file I preview locally before uploading to the web. In it there are links to local pdf files. To upload, I have to prefix a web url to the pdf's. Here is a sample of my local html file -...
tyee's user avatar
  • 103
-1 votes
1 answer
1k views

HTML not loading local images in any of my browsers in my system [closed]

Problem In my main desktop system running Arch linux, when I create an HTML file with a tag and an image like so: <img src="imagepath" alt="sometext"> the image does not ...
Yoquec's user avatar
  • 1
1 vote
1 answer
412 views

Substitution in html file using awk

My awk script reads records from file1, finds the same records in file2 and substitutes alternate positions (of the record) with a defined symbol in that. But few of the values are not getting ...
Nadia Alice's user avatar
0 votes
2 answers
61 views

What is the *nix parallel to Microsoft front page (HTML page builder)?

Just as LibreOffice is the current parallel to Microsoft Office and just as GIMP is the current parallel to Adobe Photoshop, what is the *nix parallel to Microsoft front page (HTML page builder)? Can ...
searcher's user avatar
0 votes
0 answers
58 views

Suggestions for using Nginx web server on Ubuntu 20.04

We recently switched to Ubuntu 20.04 from Windows, and I am here to seek suggestions and recommendations for my use case. I have installed Nginx web server on my Ubuntu VM (my_server_name) and we ...
khajlk's user avatar
  • 109
0 votes
0 answers
80 views

From HTML to .pdf - in a recorsive way

I read some (old) treads about this matter, but I've to create a .pdf of a whole part of a site. I was able to download all this with wget -r. Then, I tried to use wkhtmltopdf, but it seems to me that ...
user41063's user avatar
  • 153
0 votes
1 answer
382 views

html file to picture on cli of ranger preview

I would like to preview html files in ranger as pictures similarly how pdf files can be previewed. I imagine first it would be needed to force it into A4 page or something of the like, so it's a ...
fbence's user avatar
  • 505
0 votes
0 answers
155 views

How to send attachment in email using awk

I have a file that I want to email using awk format to HTML to create a table. I would like to include an attachment with it, but can't seem to find a way to do so and I have looked through many ...
Christopher Karsten's user avatar
0 votes
1 answer
341 views

How to obtain data from a site that uses javascript?

What I want is to query metallum to obtain a plain list of songs that contain x word, let's say spider, so the query for the browser would be https://www.metal-archives.com/search?searchString=spider&...
ape1's user avatar
  • 41
1 vote
0 answers
221 views

XMLstarlet to fix image tags and replace path for images

I have multiple .XHTML files in the folder. The top declaration part is as follows: <?xml version="1.0" encoding="UTF-8"?> <html xml:lang="en-us" lang="en-...
minto's user avatar
  • 525
0 votes
6 answers
2k views

sed to replace path to the image

I need to replace path to the image in multiple xhtml files in directory. The files head part is as follows: <?xml version="1.0" encoding="UTF-8"?> <html xml:lang="en-...
minto's user avatar
  • 525
0 votes
1 answer
120 views

Append multiline html section to the top and bottom of html files

what is the most handy way to append multiline html block to the top of html pages in the directory? I have a multiple XHTML files in directory, without a heading part and without closing tags at the ...
minto's user avatar
  • 525
0 votes
3 answers
261 views

How do I get sed to delete the second block of lines in a file?

I have hundreds of badly-written HTML files that have two HTML sections, like this: <HTML> <HEAD> several header lines </HEAD> <BODY> hundreds of lines of content </BODY> ...
Ed Sawicki's user avatar
0 votes
4 answers
431 views

Fill down multiple columns in HTML file with AWK

using AWK I am trying to fill down a HTML table (rows/columns) based on the previous value. Similar to excel. eg: table user$ csv2html.awk table.csv rowing | fast | good | fast ...
malkier11's user avatar
1 vote
1 answer
349 views

How to remove part of line from HTML file

I have a file, events.html, containing similar lines (among many other): <td class="EventDate">2021-08-06 12:36:34</td> where date and time strings are different in each line. ...
TeWuEs Tewues's user avatar
0 votes
1 answer
1k views

Get all css style, link, js and script from html file using ShellScript

I want to get all JS <script> tag inside data as well as <script src="path/to/js"></script> or <script src="http(s)://example.com/to.js"></script>. ...
Subhajit's user avatar
  • 101
1 vote
2 answers
519 views

CGI (Commong Gateway Interface) program wont run from HTML page, getting "Forbidden" permission

I'm trying to run this example CGI program that is from this Wikipedia page https://en.wikipedia.org/wiki/Common_Gateway_Interface The HTML code is as follows, the file is named "add.html" &...
doomspacemarine's user avatar
0 votes
1 answer
368 views

CGI (Commong Gateway Interface) program example wont run from HTML page [duplicate]

I'm trying to run this example CGI program that is from this Wikipedia page https://en.wikipedia.org/wiki/Common_Gateway_Interface The HTML code is as follows, the file is named "add.html" &...
doomspacemarine's user avatar
2 votes
1 answer
533 views

Extracting html data using perl script

This is my code to extract certain data under the header Item Drop%. I want to extract the 90.5% under that header. But i can only extract the whole column not just that value. any idea ? #!/usr/bin/...
HelpMeAndroidStudio's user avatar
-1 votes
1 answer
206 views

Find and replace or remove HTML <li> tag using sed in Linux

I need to remove the following html <li> tag in many index.html pages. <li> <a href="https://forward.global.ssl.fastly.net/contributoragreements/" ...
Ravindu Prashan's user avatar
1 vote
0 answers
1k views

How to download a complete htm webpage with all subpages

I would like to download a complete offline copy of this website with all subpages: www.support.robotis.com/en/techsupport_eng.htm I have tried using: wget -m -p -k support.robotis.com/en/...
Kristian's user avatar
-1 votes
3 answers
2k views

Store terminal output in HTML file

I have a CSV file that I'm counting the occurrences of column 4: Input: 2,Serveis,14,"Restaurants, bars i hotels (Inclos hostals, pensions i fondes)",Restaurants,1 2,Serveis,11,"...
Llem Colop's user avatar
-2 votes
4 answers
616 views

How to fetch first regex result from file using bash, grep or sed?

I have a file called index.html and I grep '<td class="headerCovTableEntryLo">' index.html getting this: <td class="headerCovTableEntryLo">39.2 %</td> <td ...
Антон's user avatar
0 votes
1 answer
461 views

How to use sed to remove letters, numbers, spaces, hyphens from the same linux string

I am trying to create a script to monitor a web page and send a telegram notification whenever there is a change in that page, I am using diff to accomplish this task. The script seems to work well ...
Doom's user avatar
  • 1
0 votes
1 answer
654 views

sed replace multiple matches per line

I am trying to replace some html links such that they open in a new tab (Except links that point to the same page). Here is a dummy html page to illustrate my issue. I call it test.html. <p> ...
mindlessgreen's user avatar
0 votes
2 answers
259 views

manipulating html strings in bash

So I have three lines from a html file: /html> <table style="width:500px;text-align:left;"> <tr><td>apple</td><td>400</td><td>432</td><...
Nigel Wash's user avatar

1
2 3 4 5
7