Sponsored Content
Top Forums Shell Programming and Scripting Draw a Horizontal and Vertical line on UNIX Post 302285491 by angheloko on Monday 9th of February 2009 04:24:39 AM
Old 02-09-2009
Smilie

I'm not sure what you're getting at or what your desired output really is but if you just need to display:

Code:
12:00 3:00
Line |_________|

Then just:

Code:
echo "12:00 3:00"
echo "Line |__________|"

Like I said earlier, you need to post more details man.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

converting horizontal line to vertical line

how to use "tr" command to display horizontal line to vertical line for vertical to horizontal, the command is tr '\n' '\t' <inputfile but what is the command for horizontal to vertical Thanks Vasikaran (3 Replies)
Discussion started by: vasikaran
3 Replies

2. Shell Programming and Scripting

Vertical an horizontal pivoing in unix

Please help me to do Vertical an horizontal pivoing in unix in single run. The input file is like this- MRKT|PROD|PRD|FACT1|FACT2|FACT3|FACT4 M1|P1|PR1|F11|F12|F13|F14 M1|P1|PR2|F21|F22|F23|F24 M1|P1|PR3|F31|F32|F33|F34 M2|P2|PR1|F41|F42|F43|F44 M2|P2|PR2|F51|F53|F54|F55... (4 Replies)
Discussion started by: marut_ashu
4 Replies

3. Shell Programming and Scripting

Need help in changing vertical lines to horizontal line in a file

Hi, I have a file like below robert PREF: 3 AVAIL: henry PREF: 234 AVAIL: john PREF: 145,178 AVAIL: 123 matt PREF: 564,932 AVAIL: ten PREF: 389 AVAIL: kill (2 Replies)
Discussion started by: rocky1954
2 Replies

4. UNIX for Dummies Questions & Answers

Horizontal to vertical

Hi, Silly question, if I have an excel file that looks something like this: ................. Subject 1 Subject 2 Subject 3 Subject 4 Fever..............13...........9.............23..........14 Headache.........2............12...........18..........23... (3 Replies)
Discussion started by: Xterra
3 Replies

5. UNIX for Dummies Questions & Answers

vertical to horizontal

dear all, i'm new to unix and i try to figure out the best case for making list of vertical text to become horizontal and skip the line 1 and 2. example text : Data DATE XXXXX MAX 47 53 49 51 48 48 7 46 51 8 25 (6 Replies)
Discussion started by: andrisetia
6 Replies

6. UNIX for Dummies Questions & Answers

How to move vertical line to Horizontal...

How to move a vertical line to Horizontal line.....Can i use a tr command? code is: StudentID Java .Net C# I want to move this line like this: StudentID Java .Net C# Please use code tags! (3 Replies)
Discussion started by: Arsh10
3 Replies

7. Shell Programming and Scripting

Need perl or shell script to sort vertical lines to horizontal line in csv format

Need perl or shell script to sort vertical lines to horizontal line in csv format My file like below ------------------------- ================================================================================ PATH PINKY1000#I1-1-ZENTA1000-2#I7-1-ASON-SBR-UP-943113845 ... (4 Replies)
Discussion started by: sreedhargouda.h
4 Replies

8. Shell Programming and Scripting

How do i do the vertical to horizontal??

51009 8746 8912 17986 20315 24998 5368 38934 7805 8566 (4 Replies)
Discussion started by: nikhil jain
4 Replies

9. Shell Programming and Scripting

Change the vertical logs to horizontal line

Hi, cat log EPC-SubsId: 3333 EPC-GrIds: RTGHUPA:1:15-11-2013T19:59,22-11-2013T19:59 EPC-GrIds: PrimaXGB_23:10 EPC-SubsId: 4444 EPC-GrIds: RTGHUPB:1:15-11-2013T19:59,22-11-2013T19:59 EPC-SubId: 5555 EPC-GrIds: RTGHUPC:1:15-11-2013T19:59,22-11-2013T19:59 EPC-SubsId: 6666... (1 Reply)
Discussion started by: justbow
1 Replies

10. Emergency UNIX and Linux Support

Help parsing log from vertical to horizontal line

Hi Expert, i have log in attached (log.txt) i want the log result become horizontal line : recordOpeningTime,servedMSISDN,ratingGroup,datavolumeFBCUplink,datavolumeFBCDownlink 1502260153422B0800,196738930571,3,7946,2219 1502260153422B0800,196738930571,3,233,174... (4 Replies)
Discussion started by: justbow
4 Replies
TBL(1)							      General Commands Manual							    TBL(1)

NAME
tbl - format tables for nroff or troff SYNOPSIS
tbl [ file ... ] DESCRIPTION
Tbl is a preprocessor for formatting tables for nroff or troff(1). The input files are copied to the standard output, except for segments of the form .TS options ; format . data .T& format . data . . . .TE which describe tables and are replaced by troff requests to lay out the tables. If no arguments are given, tbl reads the standard input. The (optional) options line is terminated by a semicolon and contains one or more of center center the table; default is left-adjust expand make table as wide as current line length box doublebox enclose the table in a box or double box allbox enclose every item in a box tab(x) use x to separate input items; default is tab linesize(n) set rules in n-point type delim(xy) recognize x and y as eqn(1) delimiters Each line, except the last, of the obligatory format describes one row of the table. The last line describes all rows until the next .T&, where the format changes, or the end of the table at .TE. A format is specified by key letters, one per column, either upper or lower case: L Left justify: the default for columns without format keys. R Right justify. C Center. N Numeric: align at decimal point (inferred for integers) or at S Span: extend previous column across this one. A Alphabetic: left-aligned within column, widest item centered, indented relative to L rows. ^ Vertical span: continue item from previous row into this row. - Draw a horizontal rule in this column. = Draw a double horizontal rule in this column. Key letters may be followed by modifiers, also either case: | Draw vertical rule between columns. || Draw a double vertical rule between columns. n Gap between column is n ens wide. Default is 3. Ffont Use specified font. B and I mean FB and FI. T Begin vertically-spanned item at top row of range; default is vertical centering (with Pn Use point size n. Vn Use n-point vertical spacing in text block; signed n means relative change. W(n) Column width as a troff width specification. Parens are optional if n is a simple integer. E Equalize the widths of all columns marked E. Each line of data becomes one row of the table; tabs separate items. Lines beginning with are troff requests. Certain special data items are recognized: _ Draw a horizontal rule in this column. = Draw a double horizontal rule in this column. A data line consisting of a single or draws the rule across the whole table. \_ Draw a rule only as wide as the contents of the column. Rx Repeat character x across the column. ^ Span the previous item in this column down into this row. T{ The item is a text block to be separately formatted by troff and placed in the table. The block continues to the next line begin- ning with T}. The remainder of the data line follows at that point. When it is used in a pipeline with eqn, the tbl command should be first, to minimize the volume of data passed through pipes. EXAMPLES
Let <tab> represent a tab (which should be typed as a genuine tab). .TS c s s c c s c c c l n n. Household Population Town<tab>Households <tab>Number<tab>Size Bedminster<tab>789<tab>3.26 Bernards Twp.<tab>3087<tab>3.74 Bernardsville<tab>2018<tab>3.30 .TE Household Population Town Households Number Size Bedminster 789 3.26 Bernards Twp. 3087 3.74 Bernardsville 2018 3.30 SOURCE
/sys/src/cmd/tbl SEE ALSO
troff(1), eqn(1), doctype(1) M. E. Lesk and L. L. Cherry, ``TBL--a Program to Format Tables'', Unix Research System Programmer's Manual, Tenth Edition, Volume 2. TBL(1)
All times are GMT -4. The time now is 02:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy