Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
3answers
42 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
0answers
23 views

extract specific words and its data from file [duplicate]

I have a html file with 70+ gb data contain data like below. here is the sample data. We are not sure the trxn field may come or not, how many times it may appear in a record. If it came in record ...
-1
votes
2answers
45 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. ...
0
votes
0answers
14 views

Eclipse: The SWT browser widget could not be created [migrated]

I have installed eclipse (4.10) on my Linux Machine (KDE Neon 5.15) and everything works quite well except for the JavaDoc. Whenever I view the JavaDoc-hover, I get a plain text representation and at ...
1
vote
1answer
56 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 ...
0
votes
1answer
41 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/...
0
votes
1answer
5 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 ...
1
vote
4answers
164 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
71 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"]' - ...
2
votes
1answer
178 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
2answers
306 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

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
21 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
103 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{ ...
1
vote
1answer
192 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
49 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
224 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-...
0
votes
1answer
306 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
27 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
644 views

Awk select columns between html table data

I'm trying to extract data between <td></td> tags, but if i use something like awk -F"<td>" {' $1 ":" $2 '} it will output the remaining html data after column 1 and column 2, ...
3
votes
4answers
390 views

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

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

Execution of Embedded ruby code

I have ruby code written for user add in DB. User Add Code : `<h1>New User Group</h1> <%= f.label :name, 'Name:' %> <%= f.text_field :name, :class => '...
1
vote
2answers
251 views

Change the background color (html format) if a number is less than a threshold

I have the folowing file which is called test.html: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII"> <meta name="generator" content="SQL*Plus ...
5
votes
1answer
96 views

The right tool to reverse the sorting order of thousands of elements in HTML file [closed]

I have a HTML file containing thousands of <div class='date'></div><ul>...</ul> blocks of code like below: <!DOCTYPE html> <html> <head> </head&...
0
votes
0answers
72 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
0answers
41 views

Unix/CGI script not fetching latest script output

I am trying to get a list of files available from a windows ftp server and then do further processing. Using CURL to get the list of file. I am getting the output displayed on browser but it is stale. ...
0
votes
2answers
668 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 '[:...
1
vote
1answer
105 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 ...
1
vote
2answers
282 views

Render mixture plain text and HTML output from a command in a terminal

I am using SDcv, Collins Cobuild 5 is it's dictionary, which output html, like: # czxyl @ archlinux in ~/Dropbox [12:57:27] C:16 $ sdcv hello Found 7 items, similar to hello. --&...
0
votes
1answer
154 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 ...
1
vote
2answers
1k views

How to insert text between two set patterns with sed?

I need to insert text between two set patterns in a large set of files. I need to change every line with this form: <a href="/entry/someFile"> To this: <a href="/entry/someFile.xhtml"> ...
0
votes
1answer
47 views

Display a table from a website

I have an idea for what I want to do, but am not sure exactly what to do. I want to curl http://www.bostonglobe.com/sports/tvradio/listings then somehow display a table on this page. The table is <...
0
votes
1answer
49 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
0answers
595 views

Multiple html files in message body-mailx

I'm using pandas to get csv to html #!/usr/bin/python import pandas as pd import sys import json sys.stdout = open('output.html','wt') df = pd.read_csv('users.csv') print(df.to_html()) For another ...
-1
votes
3answers
111 views

Download the part of the web page [duplicate]

I would like to "parse" some list of web pages (html), the "parsing" is only about redirecting what's between <title> </title> tags to some specific files. Firstly I did for cycle with ...
0
votes
5answers
84 views

Rename a HTML file based on the content of a tag

I have a lot of html files that I want to rename according to the content of the tag h1. Any suggestion on how to do it on bash? Example of a file: <!DOCTYPE html><html lang="pt-BR">&...
1
vote
2answers
2k views

Grep only for content between tags

I have an html-type of file that somewhere includes a tag as follows: <Currentnumber>0.3.5</Currentnumber> How do I catch in a variable the value 0.3.5 and only this? I have come as far ...
-1
votes
0answers
190 views

How do I extract specific text from a HTML document in bash?

I am trying to extract the text that is displayed just below the player from http://www.hotstar.com/sports/cricket/series/m184177/match-clips/greater-things-lie-ahead-dravid/2002003068. The text that ...
0
votes
3answers
32 views

Parsing: extract a version from a html line

I would like to extract version number from this string: <a href="/url/version/tree/1.0.1alpha11" class="css-truncate"> Note that '/url/version/tree/' may change (ex: from /url/version/tree/ ...
0
votes
1answer
24 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 ...
-1
votes
3answers
138 views

How to get URL's from a JSON page where the user searches a word and then appears all the websites with that word?

I am trying to use a script in bash shell that returns the present urls on a certain webpage... What I have is a script that returns all URLs but you need to put in the code the link that you want, ...
-1
votes
1answer
380 views

sed to insert a html values in a specific line number

I was trying to insert a values in between html tags in a specific line number. Also it should ignore whitespaces at the beginning. Example :- line 15 should be replaced <john></john> ...
1
vote
1answer
445 views

generate html table of content from multiple html files

This is not specifically a Linux question. But I was wondering if I can get this done in BASH. I have multiple HTML files in a folder and I want to generate a HTML table of content. So for file1.html ...
1
vote
1answer
244 views

How can I find subdomains of splunk.com using http reponse?

I have sent http request to the "splunk.com" with usin that command curl -L splunk.com I got html codes. I want to find subdomains of that website by parsing the html codes.
2
votes
2answers
4k views

Send html format mail stored in variable using sendmail command

Below script works fine in my Linux server. ( echo "From: name@xyz.com"; echo "To: name2@xyz.com"; echo "Subject: Test Subject"; echo "Content-Type: text/html"; echo "MIME-Version: 1.0"; echo ""; ...
1
vote
1answer
889 views

Make all urls in a page absolute from the command line

I like using curl and the command line to process html pages. Relative urls are a pain. Is there some easy utility to make all relative urls absolute? Ideally this would look something like ...
3
votes
1answer
72 views

How to correctly remove a footer with hxremove?

I try to remove a footer section in multiple html files. For simplicity I started with just one file. The file contains: <footer id="footer"> ... </footer> I tried hxremove footer foo....
-1
votes
1answer
111 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
152 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 ,...