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
0answers
27 views

How to make a linux server as a website? [on hold]

I have a server (Oracle linux base). I want to make it as a website. I have put .php inside /var/www/html. What to do next? By the way, this server has its own internal ip address. I use another pc on ...
1
vote
1answer
1k views

Shell script equivalent to PHP $_POST

For example and learning purposes, I have a webpage that uses POST method to submit a text field. I have a server running script (bash) that I want to display what the "Query_string" is. I'm not ...
3
votes
1answer
1k views

How do I run webm video file in firefox using HTML5 on linux?

I am using apache server on linux and want to run a .webm video file. I have .webm video file which i am trying to run in firefox (V 12.0) using HTML5 but the browser is showing as "no video with ...
1
vote
1answer
38 views

Wanted: GUI interface to show status of services on many servers

We have 763 Red Hat 7.2 Linux machines with systemd, systemctl and the presto service: systemctl status presto.service ● presto.service - Perforce Server Loaded: loaded (/etc/systemd/system/...
0
votes
0answers
38 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 ...
3
votes
2answers
79 views

Parsing CSV with AWK to Produce HTML Output

I have a data file with rows of comma-separated fields like this: United Kingdom, GB, +44 and I want to produce the following output for each line in the file: <option value="GB">United ...
0
votes
0answers
7 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 ...
-1
votes
1answer
62 views

How do I exclude pre tags from HTML minification using sed?

I am trying to minify HTML using sed My problem: I don't want to minify anything inside <pre> tags, but can't make it work.. Here is what I am using: sed ':a;N;$!ba;s@>\s*<@><@g' $...
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 ...
0
votes
0answers
35 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 ...
1
vote
2answers
53 views

Howto find the size of a remote http/https directory (non recursively) using a given regexp from the command line

I'm trying to find the size of a remote http/https directory (non recursively) using a given regexp (\.mp4) from the command line, is there a tool to do so or do I need to parse the index.html ? ...
1
vote
2answers
2k views

parse HTML in Bash (when grep just isn't enough)

This is driving me insane, as I'm sure there must be some program doing the job but I just can't find it. To be noted, I'd be on ARM/Raspberry so unfortunately Xidel is not an option here, unless ...
4
votes
4answers
526 views

Use sed to encapsulate the first word of each paragraph with <i> </i>?

So obviously I am trying italicize the first word of each paragraph in a huge document. I think its relatively easy to add the prefix but how do I delineate just the first word for the postfix instead ...
118
votes
19answers
138k views

Simple command line HTTP server

I have a script which generates a daily report which I want to serve to the so called general public. The problem is I don't want to add to my headaches maintance of a HTTP server (e.g. Apache) with ...
0
votes
2answers
852 views

Search the value from a dynamic file and pass to a variable in HTML [closed]

I have the following file below with the format and I want to pass the value to HTML BE64533-A0E1-4F98-A91F-02C1D0 column=ABC_Received:ABC_Structure_Type, timestamp=1439978656596, **value=ASCII** ...
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=...
8
votes
4answers
28k views

Convert csv to HTML table

I have a Medical.csv file with rows of following format, field: 'participation.type', displayName: 'program_type', type: 'String',path:'participation' field: 'participation.program', ...
0
votes
3answers
56 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> &...
-1
votes
2answers
49 views

Return the next 50 characters after a string is found in a file

I'm pretty terrible with regex and searching for patterns, so I don't really know where to start. I need to find <td id="latest_button"> in test.txt and return the next 50 characters after it. ...
1
vote
1answer
71 views

Placing the last line first in each html <ul> with sed

I try to place the line "name: *****" just after the corresponding (innermost containing) "ul" each time an "ul" appears, so that it looks like this: Before: <ul> <ul> <li ...
2
votes
1answer
335 views

HTML plugin for Claws-Mail 3.16?

I recently upgraded my Claws-Mail software to 3.16 (64-bit). I now find that it no longer has an HTML plugin (Fancy, Dillo, etc). Does anyone know of a plugin to display the HTML in email in Claws-...
0
votes
1answer
69 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
3answers
46 views

Looking for bash script which can insert input from 2 files

I have 2 files with different data. How can I put data in those files and print it? I was trying for loop, but it is only good for 1 variable. FileA https://xyx.com/test-posts/ https://www.abc.com/...
1
vote
1answer
758 views

Extract Values from HTML via HTML parser [duplicate]

I initially asked about a way to use grep/awk directly from an HTML file. I got some feedback but I see that people did not have the whole HTML and so the solutions suggested failed. Some have ...
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 ...
0
votes
1answer
8 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
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?
5
votes
3answers
2k views

How to change the pair of a changed HTML tag in Vim?

How can I configure Vim so that when I change one member of a matching pair of HTML tags, the other is automatically changed to match? For example: given <span>content</span>, I want to ...
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 ...
4
votes
2answers
2k views

How to convert a PowerPoint ppt file into HTML files?

I have to find a free, gratis command line solution to convert primary Microsoft PowerPoint presentations into HTML files (1 HTML file per foil) on Linux (Debian, OpenSuse). It would be nice if the ...
22
votes
7answers
66k views

Text between two tags

I want to retrieve whatever is between these two tags – <tr> </tr> – from an html doc. Now I don't have any specific html requirements that would warrant for an html parser. I just plain ...
0
votes
0answers
671 views

Use Rsync with HTTP

Is it possible to use rsync with an HTML POST request? If so what would the rsync command look like? For example let's say using HTML5 I have this : <form method="post" enctype="multipart/form-...
1
vote
4answers
251 views

sed find and replace html tag

I need find and replace in a md file (plain text) <span class="symbol">&#58771;</span> with this: [&#58771;]{custom-style="symbol"} I tried many times, f.e. sed -i -e 's/\(&...
2
votes
0answers
155 views

how to output html to a file with xmllint?

How do I get xmllint to output to a file? thufir@dur:~/xmllint$ thufir@dur:~/xmllint$ xmllint --html http://www.skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450 --xpath '//div[@class = "tides"]' - ...
1
vote
1answer
118 views

Mass convert thousands of downloaded (with wget) HTML documents to DOCX

I would like to process and convert all the files downloaded from wget in HTML format from a URL. I want to convert a complete web page to DOCX format. We are talking about 3000 HTML documents ...
0
votes
2answers
729 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
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
28 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
333 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
174 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
2answers
344 views

Using bash to replace html character entities in the xml file

I have a string like this in xml file: &lt;h3&gt;Styled here with: &lt;a href="$url('Product-Show','pid','107723102')$"&gt;FRS blo&lt;/a&gt;, &lt;a href="$url('Product-...
-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 ...
0
votes
1answer
82 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. ...
1
vote
1answer
348 views

How to get frame source using wget?

I am trying to get html data from servicenow website. It's using frames and I would like to extract the frame source using wget. I am unable to find the option/flags to do this job. I am only able to ...
0
votes
1answer
57 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
1answer
337 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 ...
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 ?
6
votes
1answer
262 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
0answers
122 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 ...
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 ...