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
votes
1answer
128 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
164 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
96 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
2answers
2k 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 ...
0
votes
1answer
332 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
262 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 ...
-2
votes
1answer
349 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
304 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 ...
5
votes
1answer
3k views

HTML email from heirloom mailx on linux

I've been trying to work through sending a html email from mailx on a linux server. Few Notes: I have to specify a smtp server so therefore I cannot use sendmail (This is not something I can change ...
6
votes
1answer
261 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
2answers
521 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>&...
-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 ...
0
votes
1answer
1k views

df -h command output in HTML format with specific columns

I am trying to write a shell script which sends the output of df -h in mail with the help of HTML code embedded in the script. The issue is this is printing all six columns. I want only specific ...
-1
votes
1answer
356 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>&...
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 ...
2
votes
2answers
180 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 ...
0
votes
1answer
680 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
128 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
1answer
737 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 ...
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 ...
2
votes
2answers
224 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;} ....
0
votes
1answer
4k views

Create to HTML from an output of bash script

I want to create a script to convert the output of my script to an HTML format. Below is the sample output of my script: [root@test tmp]# cat StoreOnceStatus.txt spawn ssh -o StrictHostKeyChecking=...
1
vote
1answer
214 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
59 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
550 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-...
3
votes
1answer
317 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 ...
0
votes
1answer
449 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
634 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 ...
0
votes
1answer
302 views

Mathxl (MyMathLab) with Debian

Mathxl is a (expensive) platform I need to use for homework but I can't get it to work. (It's a white screen) The stated system requirements include Linux Ubuntu Firefox 46.0 to latest Which ...
1
vote
1answer
52 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
604 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 ...
0
votes
1answer
81 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. ...
0
votes
2answers
473 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, ...
-1
votes
1answer
252 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 ...
3
votes
1answer
290 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 ...
2
votes
0answers
321 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 ...
1
vote
1answer
76 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 ...
0
votes
1answer
39 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
63 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
818 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. ...
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
0answers
95 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
398 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
658 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
384 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" ...
5
votes
4answers
2k 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 ?
7
votes
3answers
211 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
191 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 ...