HyperText Markup Language (HTML) is the main markup language for displaying web pages and other information that can be displayed in a web browser.

learn more… | top users | synonyms

2
votes
1answer
25 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 ...
0
votes
0answers
7 views

Loading of PNG image through CGI program failing with errors [migrated]

I am writing to write a cgi script to display a png image in a browser. When user clicks on the 'Submit' form in the HTML page , the CGI program is called to display the image . But this is not ...
0
votes
1answer
18 views

500:Internal Server Error from CGI program

I am trying to write a CGI Program which is invoked from a HTML page . The CGI code snippet is as follows: #!/bin/bash echo "Content-type: text/html" echo "<html>" echo "<body>" ...
2
votes
2answers
95 views

GUI library or Window Manager using HTML [closed]

Ok... You want some clarity? Being a programmer this sort of question always has conditionals. Are there any DE's or (more generally) DE backends that support building (scripting) or rather modding ...
1
vote
1answer
57 views

Extract text from source code website

I need extract text with a bash script from a website in HTML, I used this solution but doesn't work fine for me, because I must edit and format the output text. I need the text between the tag: ...
0
votes
1answer
21 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
1answer
24 views

Finding all kinds of extensions referenced in a html file

Here is my problem statement : There is a folder with many html and text files. I need to recursively go through each one of them and find all kinds of file extensions referenced in these html/text ...
1
vote
1answer
33 views

Sed: search and replace a patten with special characters which has a arbitrary string in between

I have a load of nfo files which I want to make some global substitutions for some values within each file e.g. a.nfo has the value <set>Tonight&apos;s Menu ( June 2012 )</set> ...
1
vote
0answers
18 views

how to open player in html if in /usr/bin location? [closed]

My VLC player is in /usr/bin but I don't know how to link it to embed it in a page.
1
vote
1answer
229 views

grep to extract a substring from a huge string

I am extracting certain information from a website using curl command. I need to extract a certain subsection of the string using grep command. For example, using curl command I am getting the HTML ...
2
votes
2answers
691 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
4answers
428 views

Output the result of DF command to variable then print to an HTML page [closed]

I am having a problem executing a script that basically captures the disk space from the server and outputs the result to an HTML page. STORAGE=$(df -PTh | column -t | sort -n -k6n) The output in ...
2
votes
0answers
108 views

Org-mode: Inserting (advanced) LaTeX equations for HTML expot

I'm using org-mode as working environment, and so far has been extremely useful. One of the wonders of it is the versatility of exporting... I can export to LaTeX or HTML or ODT files from the same ...
0
votes
2answers
102 views

any command that can format html or xml from shell? [closed]

There must be something on the lines of sed? Normally in sed you type something like: echo day | sed s/day/night/ the shell prints "night". Is there something that can take a file (containing ...
2
votes
3answers
61 views

Is there html documentation finder/searcher, like info utility for info files?

Many packages have their documentation in html. Is there some sort of man or info utility to find locally installed html documentation and work with it? I mean, I need a program which would ...
1
vote
1answer
57 views

Web page not able to find CGI program file

I was trying to invoke a CGI program via an html file. But got stuck for the error "file not found". I am trying the same program as in the following site: ...
1
vote
1answer
237 views

Press a html button via shell script?

i am currently trying to write a script to change some parameters on a webpage via a shell script. I can change the values in the textboxes without any problems, but i can't seem to figure out how i ...
3
votes
1answer
124 views

Copy markdown input to the clipboard as rich text

I'm about to get involved in some collaborative prose writing with a friend of mine via email. As a regular person, he will of course be using MS Word document formats; as a massive nerd, I prefer to ...
3
votes
1answer
565 views

How to download all html files from a URL's directory with wget?

I'd like to use wget to download a tutorial in a website, but this tutorial is in a specific directory. Suppose the URL is the tutorial main page http://www.abc.com/aaa/bbb/ccc/index.html. But the ...
3
votes
1answer
238 views

Save HTML from clipboard as markdown text

I want to be able to highlight a section of a web page and copy it to the clipboard then save it to my local disk as markdown. I need an efficient way to do that. My current cumbersome method is: ...
0
votes
3answers
142 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 ...
1
vote
2answers
87 views

Bash variable into html

I have a script that gets the filenames in a folder and creates HTML link to them on my homepage. Here is the script: #!/bin/bash list_dir=`ls -t /path/to/dir/` for i in $list_dir do echo ...
1
vote
3answers
379 views

Trying to remove all ids from an HTML file with grep

I'm trying to remove all id=" "s from an .html file but I'm not sure where I am going wrong. I tried using regular expressions but all I am getting is the .html file rendering in my Ubuntu terminal. ...
5
votes
4answers
5k views

Text between two tags

I wanna 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 ...
3
votes
2answers
361 views

Run shell scripts through a website

I have been reading and searching on what is the best way to run my shell scripts through a website. My goals are as follows: Browse a folder Select folder or contents onclick will run script ...
2
votes
2answers
210 views

How to read by multiple lines instead of line-by-line

I see that in my code I can modify a line if the entire code is based on that line. Example: <p class="example">this is an example Happy Holidays</p>. However if the </p> tag is ...
1
vote
1answer
104 views

how to add a description in footer

I enjoy learning how to modify files with awk, sed, and bash. However, I know it could cause issues down the road and I would like to be prepared with a log inside the file. I was thinking about how ...
0
votes
1answer
256 views

globbing, sed, or awk html files

I wanted to create a script that I could check .xhtml files for images and add alt tags if needed. While searching I found regular expressions and did man on glob but I'm unsure on where or what to ...
3
votes
1answer
191 views

How do get an html file to open in preferred html application from cmdline on linux?

How do get an html file to open in preferred html application from cmdline on linux ? To claridy I have an xterm window open and an html file I want to do something like open test.html and that ...
2
votes
2answers
1k views

How can I use awk to extract URL's from a HTML file?

I have an HTML file with javascript and CSS in the source. Listed in the JS is a series of URLs' embedded with other meta-data. I want to use awk to extract the URLs (all enclosed in double quotes ...
2
votes
2answers
274 views

Web front-end to find/grep/ack

In my lab, we are trying to build a web that allows the user to enter queries for find, ack, grep on a specific directory. The web would return an HTML with a table of a list of clickable files (click ...
3
votes
1answer
731 views

mutt: rendering html emails using w3m

I occasionally receive html messages and I would like to see whether text has been formatted or colored by the sender. I can simply navigate to the attachment list and open the text/html MIME type ...
3
votes
1answer
555 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 ...
2
votes
2answers
128 views

Print like Firefox

Made a CLI script to print Wikipedia articles: WIKI='https://en.wikipedia.org/w/index.php?title=' TITLE=$1 PRINTABLE='&printable=yes' SRC=$WIKI$TITLE$PRINTABLE HTML=$1".html" PS=$1".ps" wget ...
7
votes
1answer
891 views

Open html attachments externally in mutt

I recently managed to set up the 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 ...
1
vote
1answer
1k views

Sending HTML with Mutt (or another terminal mail client)

While I can find some scattered info on the topic, I can't seem to find a straight walkthrough (or even a definite answer)... Basically I'm too low on the totem pole to start sending plain-text ...
5
votes
1answer
283 views

Is there any way to get an HTML page rendered through Chrome/Chromium from a console?

Is there any way to get (into a file, for example) a rendered HTML page from Google Chrome/Chromium, but from a console. For example, SSHed into a machine that has Chrome/Chromium installed on ...
5
votes
2answers
2k views

Privoxy: blocking twitter, facebook and google outside of their domainslr

Related subject: blocking facebook.com outside facebook.com domain This is from default.filter ################################################################################# # # shockwave-flash: ...
2
votes
1answer
4k views

send html using mailx

I'd like to send a html file from a host using mailx but instead of interpreting it as html it would send it out as text (html codes). Is there a way to send it as html? (cat <<EOCAT Subject: ...
1
vote
1answer
181 views

How to replace the original value of variable in HTML tag

I am facing some problems in replacing the value of a variable in a html tag in a unix box. Here are the details. Please help me in finding a solution. #!/bin/ksh count=5 ...
2
votes
2answers
487 views

Is there a way to split a HTML file without losing all the formatting within each segment?

So... the split command allows me to split a file into pieces. The problem with that, though, is that only one of the files is going to contain the HTML headers, and only one of them is going to ...
0
votes
1answer
675 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?
26
votes
4answers
35k views

How do I send HTML email using linux 'mail' command?

mail -s "subject" xxxxx@gmail.com <test.html works, but only for plain text email. What is the correct way to send HTML email using the Linux command mail?
2
votes
1answer
1k views

CutyCapt seems to ignore the Xvfb screen size parameters

I have a problem using CutyCapt to create images rendered for a particular screen size. For example, if I do these: xvfb-run --server-args="-screen 0, 800x600x24" \ ~/bin/CutyCapt/CutyCapt ...
3
votes
4answers
2k 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?
2
votes
4answers
581 views

How to generate jpg thumbnails and browsable html pages from command line?

I am searching for a simple command line tool that takes a bunch of jpg files as input, copies them to some destination and generates some browsable html for it (including index page, preview ...
6
votes
2answers
323 views

Are there any good tools besides SeleniumRC that can fetch webpages including content post-painted by JavaScript?

One major shortcoming of curl is that more and more wepages are having their main piece of content painted by a JavaScript AJAX response that occurs after the initial HTTP response. curl never picks ...
5
votes
1answer
265 views

What tools allow me to present man pages as formatted HTML on a web server?

What tools exist to make man pages available on a system available via HTTP and link topics together such that references in the SEE ALSO sections and elsewhere will become hyperlinks in the HTML ...
9
votes
2answers
7k views

Parse html on Linux

I have a couple of hundred html source code files. I need to extract the contents of a particular <div> element from each of these file so I'm going to write a script to loop through each file. ...