Sponsored Content
Top Forums UNIX for Dummies Questions & Answers output spacing and formatting Post 302708871 by RudiC on Tuesday 2nd of October 2012 10:40:48 AM
Old 10-02-2012
That code is needless; pls show the output of symdg show $INS-${SNAP} | od -tx1

We can cheat and supply an empty $5 field:
Code:
sed -r 's/(^.{73}) {3}/\1---/;s/(^.{64}) /\1-/' file|
awk 'BEGIN {print "NAME         DEV id Size    Meta"}{printf "%12s %5s %7s %3s\n",$1,$3,$NF,$5}'

giving
Code:
     D-data1  2DB3   60338 ---
     D-data2  2DB4   60338 ---
     D-data3  2DB5   60338 ---
     D-data4  2DB6   60338 ---
     D-data5  02ED   60338 ---
     D-data6  0E86   60338 ---
    D-index1  2DB7   60338 ---
    D-index2  2DB8   60338 ---
    D-index3  0E87   60338 ---
      D-undo  2DB9   60338 ---
      D-arch  2DBB   60338 ---
     D-redoa  2127   10260 ---
     D-redob  2128   10260 ---
        D-db  10AE   17428 ---
     D-data7  03C1  120675 (M)
    D-index4  34BD   60338 ---

This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

formatting output

Hi need some advice.. #grep -i hostname test.csv (gives the below output) HOSTNAME,name,host_test,,,,,,,, Now I need to format the above output as below. HOSTNAME: name=host_test Any easy way of doing this using awk or sed or printf? (4 Replies)
Discussion started by: balaji_prk
4 Replies

2. Shell Programming and Scripting

formatting the output

Is it possible to convert the attached file to the format mentioned. Here for a particular job the table name and the corresponding instance name from one test run "X" is compared with the table name and the instance name from the second test run "Y" for output rows,affected rows,applied... (1 Reply)
Discussion started by: ragavhere
1 Replies

3. Shell Programming and Scripting

Formatting ls output

I am using find and ls to search for "warez" files on my server. find /home/ -regex ".*\.\(avi\|mp3\|mpeg\|mpg\|iso\)" -print0 | xargs -0 ls -oh This command produces this: -rw-r--r-- 1 1000 3.2M Feb 18 2009 /home/user/public_html/lupus.mp3 I want to only get this 3.2M... (4 Replies)
Discussion started by: bonrad
4 Replies

4. Shell Programming and Scripting

Formatting my output

Dear All, I am new to unix scripting. I need your help to format my output on screen. echo " --------------------------------------------" echo " | My Output |" echo " --------------------------------------------" echo " | A: $A... (5 Replies)
Discussion started by: rahiljavaid
5 Replies

5. Shell Programming and Scripting

Output formatting

I have input file in this way John 1234 BASIC 26000 John 1234 ALLOWC 01550 John 1234 INCER 01700 John 1234 REL 20000 Debi 2345 BASIC 29000 Debi 2345 ALLOWC 01600 Debi 2345 INCR 01900 Debi 2345 REL ... (8 Replies)
Discussion started by: vakharia Mahesh
8 Replies

6. Shell Programming and Scripting

Formatting of output

Hi Experts, I have to create a report for certain audit and my output looks as follows I m trying to format my output to look like Any inputs would be highly appreciated Thanks Syed (5 Replies)
Discussion started by: maverick_here
5 Replies

7. Shell Programming and Scripting

Output formatting .

below is a CPU utilization Log for ABC server. However for every 15 minutes it generates 3 CPU values(with interval of 2 sec). Host CPU CPUtotal CPU% time ABC 101.1 2 50.55 14 : 15 ABC 100.5 2 50.25 14 : 15 ABC 100.2 2 50.1 14 : 15 ABC 100.9 2 50.45 14 : 30 ABC 100.5 2 50.25 14 : 30 ABC... (5 Replies)
Discussion started by: pinga123
5 Replies

8. Shell Programming and Scripting

Preserving file format and spacing in output file

Hi I have a file with the following structure "VATTENFALL GLOBAL" "Vattenfall Tray" "BARCLAYS BANK LONDON" "Capula" "P1 AGEAS GLOBAL COMPANY" "AAC - Optiver" The requirement is like this 1) Take 2 input... (16 Replies)
Discussion started by: sudeep.id
16 Replies

9. Shell Programming and Scripting

Formatting output

I have the output like below: DEV#: 9 DEVICE NAME: hdisk9 TYPE: 1750500 ALGORITHM: Load Balance SERIAL: 68173531021 ========================================================================== Path# Adapter/Path Name State Mode Select Errors 0 ... (4 Replies)
Discussion started by: Daniel Gate
4 Replies

10. Shell Programming and Scripting

Formatting the Output

Hi, I am trying to use printf command and format certain output in a specific format as under: While the left side (upto |) of the above format is part of a fixed header function, the right side is where i am expecting data to be printed. However, as seen, Row1 value is reflecting on last... (5 Replies)
Discussion started by: EmbedUX
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 02:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy