Sponsored Content
Full Discussion: Creating a table
Top Forums Shell Programming and Scripting Creating a table Post 302431407 by binlib on Monday 21st of June 2010 08:48:46 PM
Old 06-21-2010
Code:
{
  NY = 3
  for (i = 0; i < NY; ++i) {
    var = ""
    for (j = 1; j <= NF; j += NY ) {
      var = var " " $(j + i)
    }
    print var
  }
}

 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Creating a hash table using shell script

Hi, For one of my programs, I need to have a hashtable as in Perl. Unfortunately shell doesnt provide any variable like hash. Is there anyway/trick, I could implement a hash in shell (using shell scripts/sed/awk). JP (2 Replies)
Discussion started by: jyotipg
2 Replies

2. Programming

Creating a Hash Table

Dear Friends, I want to create a hash table using the standard Glib header (if possible) so that I can store a structure and keep the hash key(search key) based on a string. Any example code would be great since I am not able to get the main idea. best regards Skull (4 Replies)
Discussion started by: callmetheskull
4 Replies

3. UNIX for Dummies Questions & Answers

Creating a table (graphic not database)

Hi, I want to create a table on our unix box that allows the user to tab through it and select certain option by putting an asterix or similair into it. e.g. -------------- |Start App | | |Stop App |*| etc... Can this be done using a script (never seen any graphics options in ksh, but... (2 Replies)
Discussion started by: dlam
2 Replies

4. Shell Programming and Scripting

Creating table in Unix

Hi All, In a given directory, I need to list the files present in it in the below given format as a table. File name Permission Number of Bytes File Type Telecom1 --w-r-x 1230 Directory Telecom2 ---x---x---x 450 Device file Telecom3 ... (7 Replies)
Discussion started by: mr_manii
7 Replies

5. Programming

Creating a table like format with rows and columns

I have few files which have two columns in each. like e2 1 1 2694 2 4 2485 3 2 2098 5 1 2079 6 5 2022 9 4 1734 11 5 1585 13 2 1461 18 1 1092 21 2 1019 24 1 915 25 3 907 27 1 891 28 3 890 34 1 748 39 1 700 (1 Reply)
Discussion started by: kamuju
1 Replies

6. Web Development

MYSQL: Creating Dynamic Table Names 5.1

Hey everyone. Thanks for looking at this. I'm trying to create a table with the dynamic name of TableName + today's date. My variables are all happily created but the system chokes when I try to create the new table name example: Set @BFBW = CONCAT("BFBW", CURDATE()); Select @BFBW; ... (2 Replies)
Discussion started by: Astrocloud
2 Replies

7. UNIX for Dummies Questions & Answers

Creating a condensed table from a pre-existing table in putty

Hello, I'm working with putty on Windows 7 professional and I'd like to know if there's a way to gather specific lines from a pre-existing table and make a new table with that information. More specifically, I'd like the program to look at a specific column, say column N, and see if any of the... (5 Replies)
Discussion started by: Deedee393
5 Replies

8. UNIX for Advanced & Expert Users

Insert Command Creating Table Locking Problem

Hi, i have a java based tool which does insert operation in a TABLE, and in parallel the same table is used by my C++ code which does select Query. the Table will be always busy, but sometimes the table is getting locked when i try to make an insert, am bit confused whether the lock is... (9 Replies)
Discussion started by: senkerth
9 Replies

9. Shell Programming and Scripting

Creating html table from data in file

Hi. I need to create html table from file which contains data. No awk please :) In example, ->cat file num1 num2 num3 23 3 5 2 3 4 (between numbers and words single TAB). after running mycode i need to get (heading is the first line): <table>... (2 Replies)
Discussion started by: Manu1234567
2 Replies
Config::Model::models::LCDd(3pm)			User Contributed Perl Documentation			  Config::Model::models::LCDd(3pm)

NAME
Config::Model::models::LCDd - Configuration class LCDd VERSION
version 2.021 DESCRIPTION
Configuration classes used by Config::Model LCDd.conf -- configuration file for the LCDproc server daemon LCDd This file contains the configuration for the LCDd server. The format is ini-file-like. It is divided into sections that start at markers that look like [section]. Comments are all line-based comments, and are lines that start with ' The server has a 'central' section named [server]. For the menu there is a section called [menu]. Further each driver has a section which defines how the driver acts. The drivers are activated by specifying them in a driver= line in the server section, like: Driver=curses This tells LCDd to use the curses driver. The first driver that is loaded and is capable of output defines the size of the display. The default driver to use is curses. If the driver is specified using the -d <driver> command line option, the Driver= options in the config file are ignored. The drivers read their own options from the respective sections. Model information extracted from template /etc/LCDd.conf BUGS
This model does not support to load several drivers. Loading several drivers is probably a marginal case. Please complain to the author if this assumption is false Elements server Optional. Type node. menu Optional. Type node. bayrad Optional. Type warped_node. CFontz Optional. Type warped_node. CFontzPacket Optional. Type warped_node. curses Optional. Type warped_node. CwLnx Optional. Type warped_node. ea65 Optional. Type warped_node. EyeboxOne Optional. Type warped_node. g15 Optional. Type warped_node. glcd Optional. Type warped_node. glcdlib Optional. Type warped_node. glk Optional. Type warped_node. hd44780 Optional. Type warped_node. icp_a106 Optional. Type warped_node. IOWarrior Optional. Type warped_node. imon Optional. Type warped_node. imonlcd Optional. Type warped_node. IrMan Optional. Type warped_node. irtrans Optional. Type warped_node. joy Optional. Type warped_node. lb216 Optional. Type warped_node. lcdm001 Optional. Type warped_node. lcterm Optional. Type warped_node. lirc Optional. Type warped_node. lis Optional. Type warped_node. MD8800 Optional. Type warped_node. mdm166a Optional. Type warped_node. ms6931 Optional. Type warped_node. mtc_s16209x Optional. Type warped_node. MtxOrb Optional. Type warped_node. mx5000 Optional. Type warped_node. NoritakeVFD Optional. Type warped_node. picolcd Optional. Type warped_node. pyramid Optional. Type warped_node. sed1330 Optional. Type warped_node. sed1520 Optional. Type warped_node. serialPOS Optional. Type warped_node. serialVFD Optional. Type warped_node. shuttleVFD Optional. Type warped_node. stv5730 Optional. Type warped_node. SureElec Optional. Type warped_node. svga Optional. Type warped_node. text Optional. Type warped_node. t6963 Optional. Type warped_node. tyan Optional. Type warped_node. ula200 Optional. Type warped_node. sli Optional. Type warped_node. vlsys_m428 Optional. Type warped_node. xosd Optional. Type warped_node. SEE ALSO
o cme o Config::Model::models::LCDd::CFontz o Config::Model::models::LCDd::CFontzPacket o Config::Model::models::LCDd::CwLnx o Config::Model::models::LCDd::EyeboxOne o Config::Model::models::LCDd::IOWarrior o Config::Model::models::LCDd::IrMan o Config::Model::models::LCDd::MD8800 o Config::Model::models::LCDd::MtxOrb o Config::Model::models::LCDd::NoritakeVFD o Config::Model::models::LCDd::SureElec o Config::Model::models::LCDd::bayrad o Config::Model::models::LCDd::curses o Config::Model::models::LCDd::ea65 o Config::Model::models::LCDd::g15 o Config::Model::models::LCDd::glcd o Config::Model::models::LCDd::glcdlib o Config::Model::models::LCDd::glk o Config::Model::models::LCDd::hd44780 o Config::Model::models::LCDd::icp_a106 o Config::Model::models::LCDd::imon o Config::Model::models::LCDd::imonlcd o Config::Model::models::LCDd::irtrans o Config::Model::models::LCDd::joy o Config::Model::models::LCDd::lb216 o Config::Model::models::LCDd::lcdm001 o Config::Model::models::LCDd::lcterm o Config::Model::models::LCDd::lirc o Config::Model::models::LCDd::lis o Config::Model::models::LCDd::mdm166a o Config::Model::models::LCDd::menu o Config::Model::models::LCDd::ms6931 o Config::Model::models::LCDd::mtc_s16209x o Config::Model::models::LCDd::mx5000 o Config::Model::models::LCDd::picolcd o Config::Model::models::LCDd::pyramid o Config::Model::models::LCDd::sed1330 o Config::Model::models::LCDd::sed1520 o Config::Model::models::LCDd::serialPOS o Config::Model::models::LCDd::serialVFD o Config::Model::models::LCDd::server o Config::Model::models::LCDd::shuttleVFD o Config::Model::models::LCDd::sli o Config::Model::models::LCDd::stv5730 o Config::Model::models::LCDd::svga o Config::Model::models::LCDd::t6963 o Config::Model::models::LCDd::text o Config::Model::models::LCDd::tyan o Config::Model::models::LCDd::ula200 o Config::Model::models::LCDd::vlsys_m428 o Config::Model::models::LCDd::xosd COPYRIGHT
2011, Dominique Dumont 1999-2011, William Ferrell and others LICENSE
GPL-2 perl v5.14.2 2012-11-09 Config::Model::models::LCDd(3pm)
All times are GMT -4. The time now is 03:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy