Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. 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
0
votes
2answers
719 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
3answers
695 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
92 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
3answers
435 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> ...
0
votes
2answers
837 views

Bash script to edit lots of html documents

I have a directory with many HTML documents. Most of them contain the codeblock .org-link { /* org-link */ color: #b58900; font-weight: bold; text-decoration: ...
0
votes
2answers
2k views

AWK, SED or GREP for extracting data from HTML file

Can anyone tell me which is best to use to extract the following data from a html file which was received with curl . <script>document.getElementById("test-summary").innerHTML = "<strong>...
0
votes
2answers
816 views

Thunderbird: Override colors in received HTML emails

I need to override default colors in received HTML emails. I have followed this Howto, and modified my userContent.css accordingly. Basically, I need white text on dark background: $ cat userContent....
0
votes
1answer
285 views

wget changing image name from within page

The image is generated once every n minutes, and I want to get each of these to my local directory. I had no success in getting the png-image using the command: wget -r -l1 --no-parent -A.png http://...
0
votes
2answers
3k views

Curl and grep html text

Is there a way to grep html text from a curl request and output grab the value that is between two html tags? More specifically the input value of a form?
0
votes
1answer
172 views

bash script to replace script tags in html with their content

is it possible to use sed to match the source of a script tag within html (which is not valid xml) and replace the whole match with the files' contents? e.g. say the html contained <link rel='...
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
31 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
256 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
1answer
61 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
2answers
923 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 '[:...
0
votes
1answer
71 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
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 ...
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
346 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 ...
0
votes
1answer
2k 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 ...
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 ...
0
votes
1answer
717 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/...
0
votes
2answers
60 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 ...
0
votes
1answer
328 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 ...
0
votes
3answers
884 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. ...
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/...
0
votes
1answer
44 views

How to convert the manpages of git and its subcommands into a pdf file?

There are two places that I can find manpages of git and its subcommands: https://git-scm.com/docs, and the links to all the git subcommands https://www.kernel.org/pub/software/scm/git/docs/git.html, ...
0
votes
1answer
340 views

Letting HTML file act as URL with wget

If you want to get straight to the question, please skip all the way down to the bolded and italicized question past the code. Intro: I am experiencing problems with wget and html files. I am using ...
0
votes
2answers
1k views

How to set up a local web server to serve up a local html page

I want to work with local web pages using the seleniumIDE It requires URL's. So I'd like to set up localhost, 127.0.0.1 I don't need anyone else or network access to it, however it would be ideal if ...
0
votes
1answer
1k views

Convert particular lines in a text file to bold [closed]

I have a text file with 100 lines in it. I want to convert particular lines, lets say line1, line6 , line27, line 48, line 86, line99 to bold. I am using solaris 5.10, with KSH. Is there a way I can ...
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:...
0
votes
1answer
749 views

Open Source Web Form Builder With Save to Spreadsheet or Database

Does anyone know of any open source tools that do essentially what Google Forms does. My company decided I could not use google forms because they did not want their info in the cloud, but for the ...
0
votes
1answer
545 views

Is there some html annotation tool for adding annotations to downloaded html files?

I would like to add annotations (such as underlines, text comment, circle or square a text region, ...) to downloaded html files. Is there some WYSIWYG html annotation tool (for Linux) for that ...
0
votes
1answer
1k views

Extract values from HTML Files

I have 2 HTML files, where part of the content looks like this: In FILE1: <td width="48%" align="right" valign="top"> <b>mom. Wirkleistung P+ tot.: </b><br> <b>mom. ...
0
votes
1answer
64 views

Parse and remove a series of html files

I'd like to remove a series of elements like: div-id="st-head" class="noprint" from a html file.
0
votes
3answers
1k views

Inserting the results of a for loop into an html file - BASH

I have a script that takes the results of a command and puts them into a html code. Here's what I have so far... #!/bin/bash list_dir=`ls -t downloads/` for i in $list_dir do #---- # echo "...
0
votes
0answers
34 views

How to draw HTML table having contain result of SQL query and send to mail in Shell script

I want to draw HTML table contain record of SQL query and send to mail in shell script. Here is the shell script:- #!/usr/bin/ksh out=$(for id in 1 2 3 4 do sqlplus -s <user>/<...
0
votes
0answers
15 views

how to parse html in multipart attachement mail in mutt mail client?

my email client is mutt. and I am using elinks to view html in my emails and this is my mailcap: text/html; elinks %s; nametemplate=%s.html text/html; elinks -dump %s; nametemplate=%s.html; ...
0
votes
0answers
37 views

Bash script - Add string 123 to file, later in same script if string 123 is present then dont add

I have a bash script that inputs lines into a html file, this is done in a loop through an array. Later in the script i loop through a different array that may contain the same values as in the ...
0
votes
0answers
8 views

How to use PHP 5 CLI server

I am PHP beginner. I need to add php script in .html file. From what i understand, PHP is a server script. Hence, it need to have web server to execute. From the online source, most of the webserver ...
0
votes
0answers
157 views

How to install PHP simple HTML DOM Parser on Linux (Debian)?

I have just started learning web scraping, and so far, I have understood that I need to install a library called simple_html_dom. Everywhere I have seen for now, people download it from sourceforge ...
0
votes
0answers
9 views

Can I create a Eclipse or Intellij project via a weblink?

I'm looking for a way to create a new Eclipse or IntelliJ project via a link or a button on a website. So for example a link where I can pass a pre-defined name for the project and all that stuff. Is ...
0
votes
0answers
38 views

How can I make wget rename files based on link name?

Everything I'm finding is based on URL, but I want the opposite. I have an html index with a list of links. The links are named like Apples, oranges, grapes, bananas. The files associated with those ...
0
votes
3answers
68 views

extract specific words and its data from html/xml file

sample input is <bre rt="1600" et="1550794901464" st="1550794899864" tid="8390500116294391399" mh="N" cn="" lc="" ts="N/A" cidc="" IDC="" eidc="BRE-S-TRA-0085418501"/> <r1> &...
0
votes
1answer
10 views

Why does the help for some applications open in Seamonkey composer?

I am running Linux in the form of openSuse Leap 15.0 with KDE Plasma 5.12.6 and have applied patches regularly. If I run some applications, for example Gimp (2.8.22), and ask for help, it starts ...
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
362 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 ...
0
votes
0answers
201 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 ...
0
votes
0answers
118 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
1answer
263 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 ...