Sponsored Content
Top Forums Shell Programming and Scripting Read html and get specific value Post 302588006 by hakermania on Friday 6th of January 2012 05:42:21 PM
Old 01-06-2012
Works like a charm Smilie Thank you Smilie

---------- Post updated at 05:42 PM ---------- Previous update was at 01:35 PM ----------

Oh, and as it has to do with the same thing, can you help me with this as well?
The file contains:
Code:
<li><a href="#globalusage">Global file usage</a></li></ul><div class="fullImageLink" id="file"><a href="//abc.com/abc.jpg"><img alt="File:ABC.jpg" src="//abc.abc.com/abc.png" width="800" height="371" /></a><br /><small>Size of this preview: <a href="//abc.abc.com/abceefed.png" class="mw-thumbnail-link">800 × 371 pixels</a>.</small> <small>Other resolutions: <a href="//abc.abc.com/abdddc.png" class="mw-thumbnail-link">320 × 149 pixels</a>*| <a href="//abc.abcd.com/asdfbc.png" class="mw-thumbnail-link">640 × 297 pixels</a>*| <a href="//abc.dfrre/ghtmd.jpg" class="mw-thumbnail-link">1,024 × 475 pixels</a>*| <a href="//abc.abc.com/abdec.png" class="mw-thumbnail-link">1,280 × 594 pixels</a>.</small></div>

The desired output is being highlighted!

Thanks again Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Read a file and put it in HTML format

Hi, I have one file as follows and I need to read this file contents in an HTML format. And send html file to some mail ids using sendmail. Communications Pvt Ltd Report AccountId Name Code IdBill Balance ... (3 Replies)
Discussion started by: Kattoor
3 Replies

2. Emergency UNIX and Linux Support

Grab total page read from webalizer display in html

Hi, I need a way to grab the total combines since inception, total pages read from webalizer on my centos server or any other location (as long as since inception) and display the result live on my website So with each visit it would be increasing, or perhaps live (ajax) not sure But can... (0 Replies)
Discussion started by: lawstudent
0 Replies

3. Shell Programming and Scripting

Html parsing - get line after specific string till a point

Hi all :) It sounds complex, for example I want to find the whole html file (there are 5 entries of this string and I need to get all of them) for the string "<td class="contentheading" width="100%">", get the next line from it only till the point that says "</td>", plus removing \t (tabs) ... (6 Replies)
Discussion started by: hakermania
6 Replies

4. Shell Programming and Scripting

Using awk to read a specific line and a specific field on that line.

Say the input was as follows: Brat 20 x 1000 32rf Pour 15 p 1621 05pr Dart 10 z 1111 22xx My program prompts for an input, what I want is to use the input to locate a specific field. Like if I type in, "Pou" then it would return "Pour" and just "Pour" I currently have this line but it is... (6 Replies)
Discussion started by: Bungkai
6 Replies

5. Shell Programming and Scripting

Read html attachment

Hi, I will get an email with a html attachment. I want to copy that html file to server in a particular location. Is it possible to do this.. If yes could you please help me on this.. Regards Neethu (1 Reply)
Discussion started by: Neethu
1 Replies

6. Shell Programming and Scripting

[SOLVED] Read html attachment from /var/mail

Hi, I am receiving an email to the server with a html attachment. When I check the /var/mail the attachment is showing as junk characters. I want to move that html file to a particular location in that server. Please help me. Regards Neethu (4 Replies)
Discussion started by: Neethu
4 Replies

7. Shell Programming and Scripting

Extract specific line in an html file starting and ending with specific pattern to a text file

Hi This is my first post and I'm just a beginner. So please be nice to me. I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file? I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies

8. Shell Programming and Scripting

Script that gathers specific values from files and puts it into HTML to send e-mail

Hi All, Sorry for long topic here. So the drill goes like that, I need a script which gathers different values from different files/locations. A_CT=`cat a.dat | awk -F'|' '{print $1}' >> report.txt` B_CT=`cat b.dat | awk -F'|' '{print $3}' >> report.txt` C_CT=`cat c.dat | awk -F'|'... (4 Replies)
Discussion started by: shivakid
4 Replies

9. UNIX for Dummies Questions & Answers

Read data from excel and upload into html page

Hi, I have requirement for automation, wanna confirm whether is it possible in shell scripting. 1) Need to read data from excel sheet 2) And upload the details in html page I know first requirement is possible by converting excel into csv form, but not sure about the second one. If... (6 Replies)
Discussion started by: stew
6 Replies

10. Shell Programming and Scripting

How is html code read, compared to say python?

so, the first line of bash, perl, python, ruby, and similar languages must contain the path to the interpreter...i.e. #!/bin/perl, or #!/bin/python. so in the case of a perl script, for instance, a perl script cannot and will never run if the perl program is not installed/present on the system. ... (9 Replies)
Discussion started by: SkySmart
9 Replies
PLASMAENGINEEXPLOR(1)						 KDE User's Manual					     PLASMAENGINEEXPLOR(1)

NAME
plasmaengineexplorer - Provides direct access to plasma data engines SYNOPSIS
plasmaengineexplorer [--height pixels] [--width pixels] [-x pixels] [-y pixels] [--engine name] [--source name] [--interval ms] plasmaengineexplorer [KDE Generic Options] [Qt Generic Options] DESCRIPTION
plasmaengineexplorer is a graphical tool allowing developers to test Plasma data engines without writing a Plasma applet. If no options are given, it will start without any data engine selected. The required data engine can be selected from a drop-down list. Only installed data engines will be found. kbuildsycoca4 may need to be run for newly-installed data engines to be found. OPTIONS
--height pixels Sets the height of the window, in pixels. --width pixels Sets the width of the window, in pixels. -x pixels Sets the x (horizontal) co-ordinate of the top left corner of the window, in pixels. -y pixels Sets the y (vertical) co-ordinate of the top left corner of the window, in pixels. --engine name Start plasmaengineexplorer with the given data engine selected. name is the internal name of the data engine given by the X-KDE-PluginInfo-Name key of the desktop file. --source name Only valid in conjunction with --engine. Requests a specific source from the data engine when plasmaengineexplorer is started. --interval time Sets the default update interval for requested sources to time milliseconds. If not set, the source will update on demand (for some sources, this will be when new data is available). If --source is specified, this is the update interval that will be used when requesting that source. SEE ALSO
More detailed user documentation is available from help:/plasma (either enter this URL into Konqueror, or run khelpcenter help:/plasma). EXAMPLES
Load the time data engine, showing the local time and updating every second: plasmaengineexplorer --engine time --source Local --interval 1000 AUTHORS
plasmaengineexplorer was written by Aaron Seigo <aseigo@kde.org>. K Desktop Environment Jan 2, 2008 PLASMAENGINEEXPLOR(1)
All times are GMT -4. The time now is 09:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy