Sponsored Content
Top Forums Shell Programming and Scripting Convert content of file to HTML Post 303022854 by indeed_1 on Saturday 8th of September 2018 02:44:50 PM
Old 09-08-2018
Thank you dear Scrutinizer,
But problem is some of cells are empty and I want put empty cell instead of replace next cell with it.
e.g look at number 3
Code:
NO.......name....family..... id
1...........jack.....black.....104
2..........daniel....nick.......75
3..........albert.................5

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help to convert Flat file to HTML

Hello I need help to convert flat file data to HTML Table format. I am generating everyday Flat file and want to convert into HTML Table format. The format of my file is: version host Total YRS NO APPS PSD 10 Sun 30 2 4 6 7 and flat... (11 Replies)
Discussion started by: getdpg
11 Replies

2. Shell Programming and Scripting

how to convert a html file to an .xml one

Hii every one. I have lots of .html files like: <html> <title> </title> <head> </head> <body> <ul id="SummaryRatings">4 stars </ul> <ul id="summaryList"> <p><b> Aurhor</b> </p> <p>wsfwfrfrtgretryetyrtyty</p> </ul> ...... ....... </body> </html> (6 Replies)
Discussion started by: kheyali Mitra
6 Replies

3. UNIX for Dummies Questions & Answers

convert csv to html file

Hi All, I am new to this forum,not sure where to post this query...so posted here Kindly need any of your help on the below ------------ I am using shell scripting and trying to convert a csv file to html file... example.csv --------------- Name Country Age Sex Andy India 25 ... (4 Replies)
Discussion started by: sumithra
4 Replies

4. Shell Programming and Scripting

Is it possible to convert text file to html table using perl

Hi, I have a text file say file1 having data like ABC c:/hm/new1 Dir DEF d:/ner/d sd ...... So i want to make a table from this text file, is it possible to do it using perl. Thanks in advance Sarbjit (1 Reply)
Discussion started by: sarbjit
1 Replies

5. Shell Programming and Scripting

Script to convert CSV file to HTML

Hi, I have made a a script which creates a csv file as daily database report However i want to covert that csv file to html because csv file does not have a good visibilty. So it is possible to have such csv to html coversion script. Your prompt help much appreciated. Thanks in advance (4 Replies)
Discussion started by: sv0081493
4 Replies

6. Shell Programming and Scripting

Script to convert csv file to html with good visibility

Hi, I have Below script which converts csv file to html succesfully.but the visiblity is simple in black n white. I want to have better visibilty of each columns in different colours(like green).As it is a Database report suppose some tablespace available space is less than 20% then it should... (7 Replies)
Discussion started by: sv0081493
7 Replies

7. Shell Programming and Scripting

Need to convert output.txt into html file

I have output.txt file generated through shell scripts which need convert in tabular format using html can you please help me output.txt Token State Date1 Date2 Description Name 34567 open 27/06/13 28/06/13 ... (5 Replies)
Discussion started by: vijay_rajni
5 Replies

8. Shell Programming and Scripting

Convert text file to HTML tabular format.

Please provide script/commands to convert text file to HTML tabular format. No need of styles and colours, just output and a heading in table is required. Output file will be send via email and will be seen from outlook. (script required without using awk). output file content: (sar... (7 Replies)
Discussion started by: Veera_V
7 Replies

9. UNIX for Dummies Questions & Answers

Convert Txt file to HTML table and email

Hi all I need help converting a text file into a html table in bash and I need to email this table. The text file looks like the below. Two columns with multiple rows. Top row being header. Application Name Application Status Application 1 Open Application 2 ... (2 Replies)
Discussion started by: hitmanjd
2 Replies

10. UNIX for Beginners Questions & Answers

Copy the content from txt file and create a html file

I have a txt file with a list of error messages in a xml tag format, and each error message is separated with a identifier(endresult).Need to split that and copy and create a new html file.Error message has some special character. how to escape the special character and insert my data into the... (7 Replies)
Discussion started by: DevAakash
7 Replies
canvas::sqmap(n)					      Variations on a canvas						  canvas::sqmap(n)

__________________________________________________________________________________________________________________________________________________

NAME
canvas::sqmap - Canvas with map background based on square tiles SYNOPSIS
package require Tcl 8.4 package require Tk 8.4 package require snit package require uevent::onidle package require cache::async package require canvas::sqmap ?0.3.1? ::canvas::sqmap pathName ?options? canvasName image set cell image canvasName image unset cell canvasName flush _________________________________________________________________ DESCRIPTION
This package provides an extended canvas widget for the display of maps based on a set of square image tiles. The tiles are the background of the canvas, with all other canvas items added always shown in front of them. The number of tiles shown, tile size, and where to get the images to show are all configurable. API
::canvas::sqmap pathName ?options? Creates the canvas pathName and configures it. The new widget supports all of the options and methods of a regular canvas, plus the options and methods described below. The result of the command is pathName. OPTIONS -grid-cell-width The value for this option is a non-negative integer. It specifies the width of the cells the background is made up of. -grid-cell-height The value for this option is a non-negative integer. It specifies the height of the cells the background is made up of. -grid-cell-command The value for this option is a command prefix. It is invoked whenever the canvas needs the image for a specific cell of the back- ground, with two additional arguments, the id of the cell, and a command prefix to invoke when the image is ready, or known to not exist. The id of the cell is a 2-element list containing the row and column number of the cell, in this order. The result command prefix (named "$result" in the example below) has to be invoked with either two or three arguments, i.e. $result set $cellid $image ; # image is known and ready $result unset $cellid ; # image does not exist This option may be left undefined, i.e. the canvas can operate without it. In that case the only images shown in grid cells are those explicitly set with the method image set, see the next section. All other grid cells will simply be empty. -viewport-command This option specifies a command prefix to invoke when the viewport of the canvas is changed, to allow users keep track of where in the scroll-region we are at all times. This can be used, for example, to drive derivate displays, or to keep items in view by moving them as the viewport moves. -image-on-load The value for this option is an image. If specified the image is shown in a cell while the actual image for that cell is getting loaded through the callback specified by the -grid-cell-command. -image-on-unset The value for this option is an image. If specified the image is shown in a cell for which the callback specified by the -grid-cell- command reported that there is no actual image to be shown. METHODS canvasName image set cell image Invoking this method places the image into the specified cell of the background. The cell is given as a 2-element list containing row and column number, in this order. Note that an image is allowed to be associated with and displayed in multiple cells of the canvas. canvasName image unset cell Invoking this method declares the specified cell of the background as empty, an existing image shown by this cell will be forgotten. The cell is given as a 2-element list containing row and column number, in this order. canvasName flush Invoking this method forces the canvas to completely reload the images for all cells. Do not use this method if the canvas is oper- ated without a -grid-cell-command, as in that case the canvas will simply forget all images without being able to reload them. IMAGE OWNERSHIP
Note that the canvas does not take ownership of the images it shows in the background. In other words, when we say that the canvas forgets an image this means only that the association between a grid cell and shown image is broken. The image is not deleted. Managing the lifecy- cle of the images shown by the canvas is responsibility of the user of the canvas. KEYWORDS
canvas, cell, grid, image, map, square map, tile canvas 0.3.1 canvas::sqmap(n)
All times are GMT -4. The time now is 08:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy