03-14-2019
I need to get the complete HTML tables into the .csv file which is getting created through the script.
But the issue in the script is , it is just reading the first table that has <TABLE> </TABLE> tags . I need the script to also read and extract the data from the second table which also has <TABLE></TABLE> tag.
Script is already attached.
Thanks,
Deepti
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies
2. UNIX for Dummies Questions & Answers
hi
i need to use unix to extract data from several rows of a table coded in html. I know that rows within a table have the tags <tr> </tr> and so i thought that my first step should be to to delete all of the other html code which is not contained within these tags. i could then use this method... (8 Replies)
Discussion started by: Streetrcr
8 Replies
3. UNIX for Advanced & Expert Users
Hiya,
I am trying to extract a news article from a web page. The sed I have written brings back a lot of Javascript code and sometimes advertisments too. Can anyone please help with this one ??? I need to fix this sed so it picks up the article ONLY (don't worry about the title or date .. i got... (2 Replies)
Discussion started by: stargazerr
2 Replies
4. AIX
Please help me in creating the script in AIX.
requirement is;
The new component's main function is to extract the data from DB2 tables and company's firewall directly.
The component function needs to check the timestamp in the DB2 tables ((CREDAT and CRETIM) with the requested timestamp and... (1 Reply)
Discussion started by: priyanka3006
1 Replies
5. Shell Programming and Scripting
for example, I have an html file, contain
<a href="http://awebsite" id="awebsite" class="first">website</a>and sometime a line contains more then one link, for example
<a href="http://awebsite" id="awebsite" class="first">website</a><a href="http://bwebsite" id="bwebsite"... (36 Replies)
Discussion started by: 14th
36 Replies
6. Shell Programming and Scripting
I am working on awk script to generate an HTML format output. With input file as below I am able to generate a HTML file however I want to saperate spare devices in a different table than rest of the devices and which has only Bunch ID, RAW Size and "Bunch Spare" status columns.
INPUT File :
... (2 Replies)
Discussion started by: dynamax
2 Replies
7. UNIX for Dummies Questions & Answers
I want to extract a table from an HTML file. the table starts with
<table class="tableinfo"
and ends with next closing table tag
</table>
how can I do this with awk/sed...
---------- Post updated at 04:34 PM ---------- Previous update was at 04:28 PM ----------
also I want to... (4 Replies)
Discussion started by: koutroul
4 Replies
8. Shell Programming and Scripting
I have the data in csv in 3 tables. how can I output the same into 3 tables in html.also how can I set the width. tried multiple options . attached is the format.
#!/bin/ksh
awk 'BEGIN{
FS=","
print "<HTML><BODY><TABLE border = '1' cellpadding=10 width=100>"
print... (7 Replies)
Discussion started by: archana25
7 Replies
9. HP-UX
Heyy,
any help would be grateful....
LOOKING FOR THE WAYS TO SEND AN EMAIL WITH ATTACHMENT & HTML TABLES IN BODY THROUGH SHELL SCRIPT (LINUX)..NOT SURE, IF WE HAVE ANY INBUILT HTML TAG OR UNIX COMMAND TO SEND THE ATTACHMENTS. KINDLY HELP
below is small script posted for our understanding..... (2 Replies)
Discussion started by: Harsha Vardhan
2 Replies
10. UNIX for Beginners Questions & Answers
Using awk to extract value after a keyword in an html, and store in ts. The awk does execute but ts is empty. I use the tag as a delimiter and the keyword as a pattern, but there probably is a better way. Thank you :).
file
<html><head><title>xxxxxx xxxxx</title><style type="text/css">
... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT CENTOS
acpidump
ACPIDUMP(1) General Commands Manual ACPIDUMP(1)
NAME
acpidump - dump a system's ACPI tables to an ASCII file
acpixtract - convert ASCII acpidump output to raw binary table
turbostat - gather performance statistics
SYNOPSIS
acpidump [options]
acpixtract [options] [filename]
turbostat [options] [command [arg]...]
DESCRIPTION
This manual page documents briefly the acpidump , acpixtract and turbostat commands.
turbostat reads hardware registers and gather statistics on the processor clock frequency and C-state usage. Works properly on Nehalem and
newer processors and on Linux kernel 2.6.30 and later versions.
OPTIONS
acpidump options are as follow:
-a, --addr 0x1234
look for tables at this phisical address
-t, --table DSDT
only dump table with DSDT signature
-o, --output filename
redirect output from stdout to filename
-b, --binary
dump data in binary form rather than in hex-dump format
-l, --lenght 0x456
works only with --addr, dump phisical memory region without trying to understand it's contents
-s, --skip 2
skip 2 tables of the given name and output only 3rd one
-h, --help
outputs an help message
OPTIONS
acpixtract options are as follow:
-a extract all tables, not just DSDT/SSDT
-l list table summaries, do not extract
-s<Signature>
Extract all tables named <Signature>
OPTIONS
turbostat options are as follow:
-v makes turbostat more verbose
-i <sec>
polling interval, default is 5
When given a command turbostat runs it and outputs statistics gathered while the program was running.
EXAMPLES
Dump the DSDT table to the file DSDT.aml in binary format (this can be disassembled later with iasl(1)):
acpidump -b -t DSDT -o DSDT.aml
Show the FACP table:
acpidump -t FACP > FACP.dat
acpixtract -a FACP.dat
iasl -d FACP.dat
Dump and extract all ACPI tables:
acpidump -o DSDT.dat
acpixtract -a
Parse APIC tables:
acpidump -o DSDT.dat
acpixtract -sAPIC DSDT.dat
SEE ALSO
iasl(1),
AUTHOR
acpidump was written by Alexey Starikovskiy and Len Brown.
This manual page was written by Mattia Dongili <malattia@debian.org>, for the Debian project (but may be used by others).
October 19, 2005 ACPIDUMP(1)