Sponsored Content
Top Forums Shell Programming and Scripting getting the column header in the output ! Post 302264439 by Wolfclaw on Thursday 4th of December 2008 02:21:13 AM
Old 12-04-2008
Try the set option
Code:
 heading on

instead of
Code:
 heading off

, on line 6

Link
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk/sed column replace using column header - help

$ cat log.txt Name Age Sex Lcation nfld alias xsd CC 25 M XYZ asx KK Y BB 21 F XAS awe SS N SD 21 M AQW rty SD A How can I replace the column with header "Lcation" with the column with header "alias" and delete the "alias" column? so that the final output will become: Name Age Sex... (10 Replies)
Discussion started by: jkl_jkl
10 Replies

2. Shell Programming and Scripting

Column header

Hello all, We are trying to run a script in Oracle DB from AIX. We need to set the Column Header while executing the query to generate the Output. For eg. select city, name from emp; It need to generate report in .csv format as CITY NAME atla tom cincin jack How I... (1 Reply)
Discussion started by: velappangs
1 Replies

3. Shell Programming and Scripting

Rename a header column by adding another column entry to the header column name URGENT!!

Hi All, I have a file example.csv which looks like this GrpID,TargetID,Signal,Avg_Num CSCH74_1_1,2007,61,256 CSCH74_1_1,212007,647,679 CSCH74_1_1,12007,3,32 CSCH74_1_1,207,299,777 I want the output as GrpID,TragetID,Signal-CSCH74_1_1,Avg_Num CSCH74_1_1,2007,61,256... (4 Replies)
Discussion started by: Vavad
4 Replies

4. UNIX for Dummies Questions & Answers

Rename a header column by adding another column entry to the header column name

Hi All, I have a file example.csv which looks like this GrpID,TargetID,Signal,Avg_Num CSCH74_1_1,2007,61,256 CSCH74_1_1,212007,647,679 CSCH74_1_1,12007,3,32 CSCH74_1_1,207,299,777 I want the output as GrpID,TragetID,Signal-CSCH74_1_1,Avg_Num CSCH74_1_1,2007,61,256... (1 Reply)
Discussion started by: Vavad
1 Replies

5. Shell Programming and Scripting

Add column header and row header

Hi, I have an input like this 1 2 3 4 2 3 4 5 4 5 6 7 I would like to count the no. of columns and print a header with a prefix "Col". I would also like to count the no. of rows and print as first column with each line number with a prefix "Row" So, my output would be ... (2 Replies)
Discussion started by: jacobs.smith
2 Replies

6. Shell Programming and Scripting

Reading column header

Hi, I have some 10 tab delimited flat files, for some files the column header starts from 1st row whereas for some other files the column header starts from row or row 3 or row4 and so on.... Is there any way in UNIX so that we can read the column headers dynamically.' I am new to UNIX, so... (12 Replies)
Discussion started by: kedar_laveti
12 Replies

7. Shell Programming and Scripting

Print column header

Hi, Below is the data in a tab limited file Here ACCENT is just a heading and the line starting with Pcode has the column headers, and there is a 2 lines space between the file header and column header. I want to print $2, that is Dealer Name I used the below code nawk... (1 Reply)
Discussion started by: kedar_laveti
1 Replies

8. Shell Programming and Scripting

Manipulate all rows except header, but header should be output as well

Hello There... I have a sample input file .. number:department:amount 125:Market:125.23 126:Hardware store:434.95 127:Video store:7.45 128:Book store:14.32 129:Gasolline:16.10 I will be doing some manipulations on all the records except the header, but the header should always be... (2 Replies)
Discussion started by: juzz4fun
2 Replies

9. Shell Programming and Scripting

Sum of a column as new column based on header in a script

Hello, I am trying to store sum of a column as a new column inside a file but have to find the column names dynamically I/p c1,c2,c3,c4,c5 10,20,30,40,50 20,30,40,50,60 If i want to find sum only column c1, c3 and output it as c6,c7 O/p c1,c2,c3,c4,c5,c6,c7 10,20,30,40,50,30,70... (6 Replies)
Discussion started by: mkathi
6 Replies
HADDOCK(1)						  Haddock documentation generator						HADDOCK(1)

NAME
haddock - documentation tool for annotated Haskell source code SYNOPSIS
haddock [options] file... DESCRIPTION
This manual page documents briefly the haddock command. Extensive documentation is available in various other formats including DVI, Post- Script and HTML; see below. file is a filename containing a Haskell source module. All the modules specified on the command line will be processed together. When one module refers to an entity in another module being processed, the documentation will link directly to that entity. Entities that cannot be found, for example because they are in a module that is not being processed as part of the current batch, simply will not be hyperlinked in the generated documentation. haddock will emit warnings listing all the identifiers it could not resolve. The modules should not be mutually recursive, as haddock does not like swimming in circles. OPTIONS
The programs follow the usual GNU command line syntax, with long options starting with two dashes (`--'). A summary of options is included below. For a complete description, see the other documentation. -o DIR, --odir=DIR directory in which to put the output files -i FILE, --read-interface=FILE read an interface from FILE. -D FILE, --dump-interface=FILE dump an interface for these modules in FILE. -l DIR, --lib=DIR location of Haddock's auxiliary files -h, --html Generate documentation in HTML format. Several files will be generated into the current directory (or the specified directory if the -o option is given), including the following: index.html The top level page of the documentation: lists the modules available, using indentation to represent the hierarchy if the modules are hierarchical. haddock.css The stylesheet used by the generated HTML. Feel free to modify this to change the colors or layout, or even specify your own stylesheet using the --css option. module.html An HTML page for each module. doc-index.html, doc-index-XX.html The index, split into two (functions/constructors and types/classes, as per Haskell namespaces) and further split alphabeti- cally. --hoogle output for Hoogle --html-help=format produce index and table of contents in mshelp, mshelp2 or devhelp format (with -h) --source-base=URL Include links to the source files in the generated documentation, where URL is the base URL where the source files can be found. -s URL, --source-module=URL Include links to the source files in the generated documentation, where URL is a source code link for each module (using the %{FILE} or %{MODULE} vars). --source-entity=URL Include links to the source files in the generated documentation, where URL is a source code link for each entity (using the %{FILE}, %{MODULE} or %{NAME} vars). --comments-base=URL URL for a comments link on the contents and index pages. --comments-module=URL URL for a comments link for each module (using the %{MODULE} var). --comments-entity=URL URL for a comments link for each entity (using the %{FILE}, %{MODULE} or %{NAME} vars). --css=FILE Use the CSS FILE instead of the default stylesheet that comes with haddock for HTML output. It should specify certain classes: see the default stylesheet for details. -p FILE, --prologue=FILE Specify a file containing prologue text. -t TITLE, --title=TITLE Use TITLE as the page heading for each page in the documentation. This will normally be the name of the library being documented. The title should be a plain string (no markup please!). -k NAME, --package=NAME Specify the package name (optional). -n, --no-implicit-prelude do not assume Prelude is imported -d, --debug Enable extra debugging output. -?, --help Display help. -V, --version Display version. -v, --verbose Verbose status reporting. --use-contents=URL Use a separately-generated HTML contents page. --gen-contents Generate an HTML contents from specified interfaces. --use-index=URL Use a separately-generated HTML index. --gen-index Generate an HTML index from specified interfaces. --ignore-all-exports Behave as if all modules have the ignore-exports atribute --hide=MODULE Behave as if MODULE has the hide attribute. --use-package=PACKAGE The modules being processed depend on PACKAGE. FILES
/usr/bin/haddock /usr/share/haddock-2.6.1/html/plus.gif /usr/share/haddock-2.6.1/html/minus.gif /usr/share/haddock-2.6.1/html/haskell_icon.gif /usr/share/haddock-2.6.1/html/haddock.js /usr/share/haddock-2.6.1/html/haddock.css /usr/share/haddock-2.6.1/html/haddock-DEBUG.css SEE ALSO
/usr/share/doc/haddock/, the Haddock homepage (http://haskell.org/haddock/) <http://haskell.org/haddock/> COPYRIGHT
Haddock version 2.6.1 Copyright 2006-2010 Simon Marlow <simonmar@microsoft.com>, Dawid Waern <david.waern@gmail.com>. All rights reserved. AUTHOR
This manual page was written by Michael Weber <michaelw@debian.org> for the Debian GNU/Linux system (but may be used by others). Haddock, version 2.6.1 July 2010 HADDOCK(1)
All times are GMT -4. The time now is 05:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy