Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.617.766 Times

htmltable 0.1

  Date Added: June 22, 2010  |  Visits: 715

htmltable

Report Broken Link
Printer Friendly Version


Product Homepage
Download (77 downloads)



htmltable is a configurable way to generate HTML tables from, for example, command output, ASCII text files, etc. The project requires that all input lines have equal numbers of fields. The first line of input is assumed to be a header line. Configuration The configuration file for htmltable can take one of two forms, as defined by the "BGSTYLE" variable. A BGSTYLE of "ALT" would have each row with an alternating background colour, defined by the variables BGCOLOR1 and BGCOLOR2. If a BGSTYLE of "NORMAL" is defined, then use the BGCOLOR variable to set the background colour of all rows. Standard HTML colour values should be used. Other variables that are mandatory are CELLSPACING and BORDER. Optional HEADERCOLOR and TABLEBG values can also be defined. Sample configuration files are included in the tarball, and if enough interest in htmltable is shown I will get around to writing some decent documentation! Notes Youll need to set "BASEDIR" appropriately within the script (line 15). The htmltable script has the following usage: Usage: htmltable.sh [-c ] [-d ] infile -c - conf file - defaults to $BASEDIR/$CONFDIR/htmltable.conf -d - delimiter - defaults to t This script is designed to grab simple delimited plain text data and format as tabular HTML output It can also be used to place command output in an HTML table, but requires more work and pre- processing, as each situation for command output is different... kevin@foo ~/htmltable $ df -hP | tr -s | sed s/Mounted on/Mounted on/ > in/df.in kevin@foo ~/htmltable $ ./bin/htmltable.sh -c ./conf/htmltable.conf -d ./in/df.in As you can see, even for a simple df listing, we need to do a few things in order to get the listing in a parsable format. First, we need to ensure that df outputs in -P (portability) mode, which ensures that each line isnt wrapped. Then, we use tr to -s (squeeze) the spaces. Next, we use sed to replace "Mounted on" with "Mounted on" which ensures that we can use a space as our delimiter, whilst still displaying the space in the outputted HTML. Other formats require different approaches, e.g. kevin@foo ~/htmltable $ cat > /tmp/header device mountpoint type options ^D kevin@foo ~/htmltable $ mount | sed -e s/ on// -e s/ type// | cat /tmp/header - > mount.in kevin@foo ~/htmltable $ ./bin/htmltable.sh -c ./conf/htmltable.conf -d ./in/mount.in We can then test this.... kevin@foo ~/htmltable $ ( echo "" > ./bin/htmltable.sh -c ./conf/htmltable.conf -d ./in/mount.in > echo "" ) /tmp/infile.html Then browse /tmp/infile.html.

Requirements: No special requirements
Platforms: Linux
Keyword: -d Ascii Text Ascii Text Files Bgstyle Command Foo For Example Generate Html Html Tables Htmltable Http Internet Kevin Output Text Files
Users rating: 0/10

License: Freeware Size: 3.07 KB
USER REVIEWS
More Reviews or Write Review


HTMLTABLE RELATED
Utilities  -  office Convert Word Excel To Text Free 6.1
office Convert Word Excel PowerPoint To Text Converter Free is the best choice for you to convert dozens of documents to popular formats in Text format. It can support converting documents as Word (doc,docx,docm), Excel ( xls,xlsm,xlsx) PowerPoint...
3.21 MB  
Productivity  -  ExcelSMS Free - Group Text from Excel 3.3.2
ExcelSMS is the most efficient way to send group messages. You can add recipient names and phone numbers in an Excel file. You can enter static or personalized text messages right in the Excel spreadsheet. For example, if you enter Hi {first...
10.3 MB  
Libraries  -  Events notification plugin 3.7.5.214
Once an event occurs (for example: "Port opened" or "Configuration changed"), the plugin creates a text message using the specified template and sends a notification. The form of the notification depends on the plugin settings. Events...
 
Windows Software  -  A-PDF Text Extractor 1.3.6
A-PDF Text Extractor is an utility designed to extract text from Adobe PDF files for use in other applications. There are three mode of output text: In PDF Order, Smart Rearrange and With Position. The program is a standalone application. No Adobe...
855 KB  
Libraries  -  HTML::WikiConverter::Normalizer 0.61
SYNOPSIS use HTML::TreeBuilder; use HTML::WikiConverter::Normalizer; my $tree = new HTML::TreeBuilder(); $tree->parse( text ); my $norm = new HTML::WikiConverter::Normalizer(); $norm->normalize($tree); # Roughly gives " text "...
34.82 KB  
Web Browser Tools  -  Copy as HTML Link 1.1
Copy as HTML Link is a Firefox extension that creates an HTML link to the current page using the selected text and copies it (into the clipboard) for pasting into other applications..
8.19 KB  
Networking Tools  -  Elastix 0.8.4 / 0.8.5 Beta
Elastix is a reporting interface to the Asterisk CDRs stored in the MySQL database. Elastix provides cool graphics to the most common reports like: - Top outgoing numbers dialed - Top internal extensions called Also, elastix provides a Call...
565 MB  
Application Add-Ins  -  Page Flipping Free PDF to Text 1.1
The page flipping free PDF to Text converts normal PDF to text without charges; Batch Mode, Hot Directories Mode and Command Mode for you to choose; Quickly conversion within minutes; Share your files via the web page or hot medium: Twitter...
878.53 KB  
Graphics Editors  -  Textaizer Pro 4.0
The best free text mosaic creator on the web. Limitless painting with text to create surprising photorealistic effects. With Textaizer Pro you can make great fun effects from pictures by repainting the picture from text. This is also known as...
2.78 MB  
HTML Utilities  -  Easy Text To HTML Converter 3.0.0
Easy Text To HTML Converter provides fast and easy conversion of Text Files (in *.txt, *.rtf formats) and Text Blocks pasted from Clipboard to HTML. The conversion is being performed in four different modes , placed on separate tabs of the main...
253.86 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, NETWORK & INTERNET
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Network & Internet  -  Free WiFi Hotspot 3.3.1
Free WiFi Hotspot is a super easy solution to turn your laptop or notebook into a portable Wi-Fi hotspot, wirelessly sharing your internet connections like DSL, Cable, Bluetooth, Mobile Broadband Card, Dial-Up, etc. through the built-in wireless...
1.04 MB  
Network & Internet  -  Easy Uploads 1.8
Easy uploads is a file storage media streaming application designed by Filestreamers that allows you to upload, store, and stream your files from their virtually unlimited file storage server. Easy Uploads can backup,share, and stream your files...
615.97 KB  
Network & Internet  -  IPv6 CARE 3.2b
IPv6 CARE, "IPv6 Compliant Automatic Runtime Environment", is a Linux tool able to patch ipv6-agnostic programs on-the-fly ('patch' mode). It can also generate a diagnosis about the IPv6 compliance of an application ('check' mode).
409.6 KB  
Network & Internet  -  PacketFence ZEN 3.1.0
PacketFence is a fully supported, trusted, Free and Open Source network access control (NAC) system. Boosting an impressive feature set including a captive-portal for registration and remediation, centralized wired and wireless management, 802.1X...
1024 MB  
Network & Internet  -  django-dbstorage 1.3
A Django file storage backend for files in the database.
10.24 KB