Sponsored Content
Top Forums Shell Programming and Scripting remove header and footer rows Post 302095821 by Glenn Arndt on Friday 10th of November 2006 10:14:09 AM
Old 11-10-2006
Which of those lines are the header? Which are the footer? Do the headers always contain the same number of lines? What about the footers? Does the content of the headers or footers change? If so, how? What does the data you want to keep look like?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

rowcnt except Header & Footer

Hi Gurus, My requirement is, I am passing a file1.dat into this(rowcnt.sh) script,but returning a wrong value of -2.(it should be 4).Becoz my file1.dat contains 6records incl: Header & Footer.(6-2=4) wrong output: ------- #sh rowcnt.sh file1.dat -2 actual_cnt except HDR & FTR should be:... (3 Replies)
Discussion started by: vsubbu1000
3 Replies

2. Shell Programming and Scripting

Inserting Header and footer

Hi All, I have several txt files i need to enter specific header and footer (both are separate) to all these files how can i do this? plz help.. Regards, Raghav (4 Replies)
Discussion started by: digitalrg
4 Replies

3. Shell Programming and Scripting

How to add header and footer?

Hi, Guys, I want add header and footer in a file. I can add footer using following command: echo "Footer" >>file. I don't know how to add header. Thanks in advance (4 Replies)
Discussion started by: ken002
4 Replies

4. UNIX for Dummies Questions & Answers

Help with the Header and Footer check

Hi, I need to check whether the incoming file has a header and footer using a UNIX script. The pattern of the header and footer is fixed as follows: Header: Name,Date Footer: Count, Total Name,Date ------------------------- ------------------------- ------------------------- Count,... (5 Replies)
Discussion started by: Sunny_teotia
5 Replies

5. UNIX for Dummies Questions & Answers

remove the header and footer using sed

I want to delete the header and footer in the file by using sed for that i ran the below script and my text file looks like emp.txt # This file contain employee # information abc 12300 34 'FGH' # This is confidential as per the firm rules. my intention is to remove the header... (8 Replies)
Discussion started by: vmachava
8 Replies

6. Shell Programming and Scripting

Header and Footer...

Hi All, I need to write a script that In my file I have to check header and footer records are available or not. If it is available I have to run the script, otherwise I should not. But current script it is checking only the data inside the script. It is avoiding to check Header and Footer... (1 Reply)
Discussion started by: suresh_target
1 Replies

7. Shell Programming and Scripting

Removing header and footer

I have two files which are getting sent to a UNIX server in order to be bcp'd into a database. The bcp is failing because there's a header and footer row on the file which give the date of the file and the number of rows in it. That's because the file is also being used for another process, so we... (1 Reply)
Discussion started by: Tom Sawyer
1 Replies

8. Shell Programming and Scripting

Add header and footer with record count in footer

This is my file(Target.txt) name|age|locaction abc|23|del xyz|24|mum jkl|25|kol The file should be like this 1|03252012 1|name|age|location 2|abc|23|del 2|xyz|24|mum 2|jkl|25|kol 2|kkk|26|hyd 3|4 Column 1 is row indicator for row 1 and 2, column indicator is 1,for data rows... (1 Reply)
Discussion started by: itsranjan
1 Replies

9. Programming

[solved] how to remove header and footer

it still display header and footer header SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 24 13:41:51 2012 Copyright (c) 1982, 2005, Oracle. All rights reserved. Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production With the Partitioning, Real... (0 Replies)
Discussion started by: ment0smintz
0 Replies

10. Shell Programming and Scripting

Strip header and footer

Hi I have below requirements on the script below : (1) I receive 2 pipe seperated file called OUT.psv and DIFF.psv with a column header.I concatenate the 2 files and create a final.psv file. I want to add another header as START_FILE to the final.psv file . How to achieve this ? (2) I have... (5 Replies)
Discussion started by: samrat dutta
5 Replies
me(5)								File Formats Manual							     me(5)

NAME
me - Macros for formatting papers SYNOPSIS
nroff -me [options] file... DESCRIPTION
This package of nroff macro definitions provides a formatting facility for technical papers in various formats. When producing two-column output on a terminal, filter the output through col. Many nroff requests are unsafe in conjunction with this package; however, the following requests can be used with impunity after the first .bp Begin a new page. .br Break the output line here. .ce n Center the next n lines. .ls n Use line spacing: n=1 single, n=2 double space. .na Do not justify (align) the right margin. .sp n Insert n spacing lines. .sz +n Add n to the point size. .ul n Underline the next n lines. Output of the neqn and tbl preprocessors for equations and tables is acceptable as input. REQUESTS
In the following list, initialization refers to the first macro. This list is incomplete. ------------------------------------------------------------------------- Request Initial Cause Explanation Value Break ------------------------------------------------------------------------- .(b - yes Begin block. .(c - yes Begin centered block. .(d - no Begin delayed text. .(f - no Begin footnote. .(l - yes Begin list. .(q - yes Begin major quote. .(x x - no Begin indexed item in index. .(z - no Begin floating keep. .)b - yes End block. .)c - yes End centered block. .)d - yes End delayed text. .)f - yes End footnote. .)l - yes End list. .)q - yes End major quote. .)x - yes End index item. .)z - yes End floating keep. .++ m H - no Define paper section. m defines the part of the paper, and can be C (chapter), A (appendix), P (prelim- inary information, for example, an abstract, table of contents, and so on), B (bibliography), RC (chapters renumbered from page one each chap- ter), or RA (appendix renumbered from page one). .+c T - yes Begin chapter (or appendix, etc., as set by T is the chapter title. .1c 1 yes One-column format on a new page. .2c 1 yes Two-column format. .EN - yes Space after equation produced by neqn. .EQ x y - yes Precede equation; break out and add space. Equation number is y. The optional argument x may be I to indent equation (default), L to left-adjust the equation, or C to center the equation. .TE - yes End table. .TH - yes End heading section of table. .TS x - yes Begin table; if x is H, table has repeated heading. .ac A N - no Set up for ACM style output. A is the Author's name(s), N is the total number of pages. Must be given before the first initializa- tion. .b x no no Print x in boldface; if there is no argument, switch to boldface. .ba +n 0 yes Augment the base indent by n. This indent is used to set the indent on regular text (like paragraphs). .bc no yes Begin new column. .bi x no no Print x in bold italics (nofill only). .bx x no no Print x in a box (nofill only). .ef 'x'y'z' '''' no Set even footer to x y z. .eh 'x'y'z' '''' no Set even header to x y z. .fo 'x'y'z' '''' no Set footer to x y z. .he 'x'y'z' '''' no Set header to x y z. .hl - yes Draw a horizontal line. .hx - no Suppress headers and footers on next page. .i x no no Italicize x; if x missing, italic text follows. .ip x y no yes Start indented paragraph, with hanging tag x. Indentation is y ens (default 5). .lp yes yes Start left-blocked paragraph. .lo - no Read in a file of local macros of the form .np 1 yes Start numbered paragraph. .of 'x'y'z' '''' no Set odd footer to x y z. .oh 'x'y'z' '''' no Set odd header to x y z. .pd - yes Print delayed text. .pp no yes Begin paragraph. First line indented. .r yes no Roman text follows. .re - no Reset tabs to default values. .sc no no Read in a file of special charac- ters and diacritical marks. Must be given before initialization. .sh n x - yes Section head follows, font automat- ically bold. n is level of sec- tion, x is title of section. .sk no no Leave the next page blank. Only one page is remembered ahead. .sz +n 10p no Augment the point size by n points. .th no no Produce the paper in thesis format. Must be given before initializa- tion. .tp no yes Begin title page. .u x - no Underline argument (nofill only). .uh - yes Like .xp x - no Print index x. ------------------------------------------------------------------------- FILES
The me macro package source file Supplemental me macros. SEE ALSO
col(1), neqn(1), nroff(1), tbl(1) me(5)
All times are GMT -4. The time now is 10:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy