Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. 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
-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 ,...
1
vote
1answer
102 views

wget on Centos 7 Terminal how to download only text without website style code

sudo wget -O /home/KrypticRelic/Desktop/DefaultAccess.txt phenoelit.org/dpl/dpl.html This prints out a significant amount of padding for the actual text that I'd like. Ex. <!DOCTYPE HTML PUBLIC ...
2
votes
1answer
622 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 ...
-2
votes
1answer
431 views

Roundcube logo mail-in-a-box

I've installed mail-in-a-box on Ubuntu 14.04 and I can't seem to find how to change Roundcube's logo. Thank you
0
votes
1answer
347 views

Extracting values from a text file having | pipe as a delimiter in text file using awk command and Replacing new lines with <br> tag using sed?

I have a text file in which I have 3 sections values separated by pipe. My text file: Saibal,Navnath,Taral,Sagar,Ankit,Prasham,Manika,Arvind,Gaurav,Abhijeet,Rohit,Madhu,Ganesh,Zahoor| LSCRM:Abhijeet ...
0
votes
1answer
360 views

Send a “TCP message” when triggered from a webpage

I have a program running on my workstation that takes an input as follows echo mycommand >/dev/tcp/127.0.0.1/1234 I would like to be able to send the "mycommand" to the specified port on the ...
19
votes
1answer
9k views

Open html attachments externally in mutt

I recently managed to set up my mailcap so that mutt can show HTML e-mails in the message window: # ~/.mailcap text/html; lynx -dump '%s' | more; nametemplate=%s.html; copiousoutput; which is ...
0
votes
2answers
680 views

sed to replace text url to html url

I have a bunch of URL in a text file. As Firefox seems unable to load these URL directly, I must convert them to HTML. Trying with sed doesn't work: sed -e 's/^(.*)$/<a href="\1">\1<\/a>&...
2
votes
4answers
18k 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" scaleFactor="...
-1
votes
3answers
1k views

How to cut part of a “curl” answer

I have been having a look at this for a while but I haven't found any answer yet. I've got a curl command to send a HTTP POST request to a server, then I have created a script called "tmg.sh" which ...
-1
votes
1answer
384 views

How to add multiple table rows in awk

Basically I am trying to print a table with 4 fields per row and the 5th field should go to the second row all the way to 8th field. awk 'BEGIN{ FS=" " print "<HTML><BR>&...
1
vote
1answer
813 views

Edit HTML files from the command line

I'm looking for a way to edit HTML files from the command line similar to sed or awk, but using path expressions similar to jq or pup. In particular, newlines, white space and other formatting details ...
3
votes
3answers
1k views

basic webscraping from the CLI

I'm trying to fetch html tags and their attributes from a webpage with linux command line tools. Here's the concrete case: Here's the task: Get all 'src' attributes of all 'script' tags of the ...
0
votes
1answer
2k views

Bash script to extract values from HTML

I am trying to extract counter values from a HA7NET 1wire device server, but I am not so used with sed or awk or bash scripts so I am running in to problems. This script gives me an array with the ...
3
votes
1answer
313 views

Can I add the Twig file type to Linux?

I generally give Twig files a "twig" extension. As I understand it these Twig files are usually recognised as HTML like files by Linux using some sort of scan algorithm. So Nemo for example ...
0
votes
3answers
3k views

How can I 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
1answer
730 views

Get the redirect URL with cURL

I am trying to get the source HTML code from the latest posts but... This URL: http://www.sportsbookreview.com/forum/search.php?do=getnew Redirect me to: http://www.sportsbookreview.com/forum/...
1
vote
2answers
148 views

text processing : extract parts of a file and write them into a single line

I have several files formatted like this: ... <title> Field1 : DATA_FIELD_1</title> ... <i class="blablabla"></i> <b>Field2 : </b> <span>DATA_FIELD_2</...
1
vote
2answers
1k 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 ...
7
votes
4answers
8k views

How to convert html entities to readable text?

I want html number entities like &#x119; and want to convert it to real character. I have emails mostly from linkedin that look like this: chcia&#x142;abym zapyta&#x107;, czy rozwa&#...
2
votes
2answers
244 views

Sort css files by the color property

I would like to build script that sort the CSS file by colors. For example: .actions_menu_forgot_password_link:hover {color: #deca9b;} .login_popup_forgot_password_link {color: #ddeffb;} ....
1
vote
1answer
231 views

How to downloaded HTML file with obfuscated text

I use Firefox and I don't have any issues viewing and reading English text on the loaded websites. If I click Save in Firefox and save the web page in question as a text file I can read everything in ...
0
votes
2answers
61 views

Traverse & Convert HTML based documentation directory to either TEXT or PDF

Documentation for a standard system package is contained in: /usr/share/doc/rsyslog-5.8.10 (distros: RHEL 6/Centos 6) however it is all *.html. I'd like to traverse all the files in the proper ...
1
vote
0answers
572 views

How to generate a nmap HTML report with python?

Given an .xml output file from a nmap scan, how would you suggest to generate an html report from this file? nmap proposes the following utility with shell (reference): xsltproc xsltproc <nmap-...
0
votes
1answer
477 views

How to configure Apache Webserver to load GIF

I would like to understand how can i configure Apache webserver in a way that whenever someone sends a http request it should just load a 1x1 Pixel Gif.. Currently, response that we get is the text ...
1
vote
0answers
34 views

Firefox always opens behind calling program

I am opening a local html file with Firefox on RHEL 6.3 with Gnome 2.28.2 and Metacity 2.28.0. Unfortunately, regardless of how I open it (terminal or java) Firefox always opens in the background, ...
0
votes
2answers
749 views

How to grab the head section of a website using the curl and grep command?

I'm taking my Linux+ midterm and I'm stuck on a question where I'm supposed to copy the head section including the tags and output it to a file. My midterm is due on the 5th so it would really help if ...
7
votes
5answers
12k views

How to convert to HTML code?

Are there any scripts that can convert between text (e.g. <hi>) and the html entities version (&lt;hi&gt;) like this website does? Or at least a PHP file?
1
vote
1answer
53 views

Match a number with fixed digits while scraping web content

I'm trying to parse a source web pages, trying to find all href similar to this: href='http://example.org/index.php?showtopic=509480 where the number after showtopic= is random (and with 6 fixed ...
0
votes
3answers
726 views

Search and Replace value in HTML binary file in UNIX

I'm trying to search and replace some values in my already created HTML template. Being a binary file, I've so far been unsuccessful in search and replacing my HTML. I need to search for string 1111 ...
1
vote
1answer
855 views

Text extraction from HTML page

I am using xidel command to extract text from HTML page. Here is my code xidel http://www.ip-adress.com/ip_tracer/8.8.8.8 --extract "<table> <tbody> <tr> <td> <...
0
votes
2answers
525 views

How to remove newline character between two strings <font>\n</font> in unix?

I want to remove the newline between two html tags which exists as follows: <font> </font> I want to remove the newline character such that it becomes: <font></font> Also, ...
2
votes
0answers
337 views

How to convert .txt or .html files to multipages .DOCX file? [closed]

Using many tools like pandoc, we can convert a text or HTML file to DOCX file. But there is a problem, the output files must be multi-page. There must be something in the input file that indicates ...
2
votes
1answer
845 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 ...
1
vote
0answers
577 views

extracting text from HTML

I have this page. I want to extract text from html page, particularly table heading (th) and table data (td). For example: Country: United States (US),State: California where th = Country and td = ...
0
votes
1answer
40 views

Linux + manage HTML files under Linux machine

we have linux server with the following details: LinuxMaster=198.23.47.21 linux redhat 6.5 when I browse with this address ( VIA IE ) http://LinuxMaster/pageINFO.html I get html screen with ...
1
vote
1answer
64 views

HTML5 Parser/wrapper

It may be the very elementary question. But I would like to know, is there any HTML5 parser/application available which will allow me to play/execute HTML file without the need of any browser. I am ...
0
votes
3answers
906 views

How to configure 'at' and 'sendmail' to mail output with Content-Type: text/html

I am upgrading some batch programs to produce html output rather than text. The batch programs are run with the at command, which in turn sends all output to the user using the sendmail command. ...
1
vote
1answer
95 views

Embedding a cmap in moinmoin

I'd like to embed a cmap in a moinmoin wiki page. I generated the cmap using dia. I then copy pasted the generated html code, modified it to point to the png image I attached to the wiki. However ...
0
votes
0answers
96 views

wgetting links that are written in script form - not plain html

I use wget to download all the html pages in an online gallery - in order to grab all the links to the full size images as follows: wget --wait=3 --user-agent=Webtography --no-cookies --timestamping -...
0
votes
3answers
438 views

Awk command to get the next line from the matched pattern and crop the string in between two patterns

I need to get the next line after matched pattern and need cut or crop the value in between two patterns from that line. Sample Source file <h2>Commodity Information</h2> <dl> ...
1
vote
2answers
690 views

Rename all spaces in image file names inside html php files

Inside different htm.gz, html.gz and php.gz web files I have images and the ones in .jpg format have name with space instead of "-", but in /images/ directory where all images are located they have "-"...
1
vote
1answer
471 views

Adding/removing some tabs and line breaks in an HTML code using sed

I want to refine an HTML code using sed, as an extra refinement procedure after refining it using HTML Tidy, as HTML Tidy doesn’t look flexible enough for some requirements. I used this command to ...
1
vote
1answer
2k views

BASH Script for logging in to Website

I've tried many solutions provided here in other forums and websites. Like this: #curl -A "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" \ #--cookie cjar --cookie-jar cjar \ #--data "username=name" ...
3
votes
3answers
15k 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 ...
7
votes
3answers
224 views

sed/awk subscript numbers in chemical formulas using markup tags

I have hundreds of text files that include chemical formulas together with narrative including numerical values. The formulas are always preceded by white spaces but can be followed by white spaces, ...
0
votes
1answer
208 views

Easy Way to Wrap CRON Output in HTML PRE?

I use Gmail and every so often I have to hack it back in that text/plain email should be rendered in a monospace font. This makes it much easier to skim system-generated reports, &c. The problems ...
2
votes
2answers
1k views

Bash script to get all mp3 file from a html page

I was thinking in a way to get .mp3 files from a html page, manually i did get using wget wget http://www.podcastfrancaisfacile.com/wp-content/uploads/files/question-prix.mp3 So, i try this for an ...
4
votes
3answers
2k 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
2k views

How can I get rid of the byte-order mark 

I have created an html webpage when I run it at the bottom of the page there's some unwanted characters uncoding . I tried to get rid of it through vi using set nobomb but it still appears in the ...