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
2 answers
76 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
66 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
  • 389
1 vote
0 answers
39 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
74 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
152 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
407 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
670 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
55 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
135 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
222 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
104 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
0 votes
0 answers
157 views

how to output color in w3m

how does w3m terminal browser output color? and how can i copy that? i know there is no CSS, but w3m has colored links, the background can be set to different colors, input fields are colored and ...
bungee1980's user avatar
2 votes
2 answers
83 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
41 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
97 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
48 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
687 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
509 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
54 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
434 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
52 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
713 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
318 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
58 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
56 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
65 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
302 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
  • 455
0 votes
0 answers
145 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
180 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
204 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
  • 511
0 votes
6 answers
1k 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
  • 511
0 votes
1 answer
111 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
  • 511
0 votes
3 answers
243 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
398 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
253 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
427 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
336 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
375 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
178 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
812 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
1k 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
428 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
399 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
563 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
197 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
0 votes
1 answer
53 views

Replacig text inside multiple repeating patterns in same line

I have something like this; I like reading **books** and taking **notes** I was trying to get something like this; I like reading <b>books</b> and taking <b>notes</b> Tried ...
atheros's user avatar
  • 256
-1 votes
1 answer
53 views

LXML Clarifications... Pretty, but complicated!

I have only recently met this lib and the first impact was not pleasant at all! First of all, from this site https://lxml.de/ I don't know about you, but I didn't understand anything! Too complicated ...
vincenzogianfelice's user avatar
1 vote
2 answers
90 views

Getting variable content of another server2 in mail inside same script which is in server1 & print value of both serversr in mail content

I have to send status of 3 servers in HTML table format using shell script. Here is the output below: --------------------------------------- | Daily Status | -------------------...
Md Wasi's user avatar
  • 123
1 vote
0 answers
167 views

Display pdftohtml output using elinks -remote option?

The following command works great to view pdf content from the command line: pdftohtml -i -stdout file.pdf |elinks. As should be clear, what's happening is that file.pdf is being converted to html and ...
MJiller's user avatar
  • 381

1
2 3 4 5
7