06-30-2005
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
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I want to draw a horizontal and vertical line on Unix. Please suggest some solution. (11 Replies)
Discussion started by: allways4u21
11 Replies
2. Shell Programming and Scripting
i have one scenario
i want to convert horizontal rows into vertical rows.
For eg
Input file contains:
1001,34.7,43.7,34.99|1002,34,243,34|1003,34,43,34|1004,34,43,34|1005,34,43,34
Output file contains
1001,34.7,43.7,34.99
1002,34,243,34
1003,34,43,34
1004,34,43,34
1005,34,43,34
Here... (3 Replies)
Discussion started by: dprakash
3 Replies
3. Shell Programming and Scripting
Hi all im able to convert vertical into horizontal as follows using tr '\n' ','
to convert
1111
2222
3333
4444 as to 1111,2222,3333,4444,
but im getting comma at end.. i want to remove the comma at end..
using sed we can do.... but it is limited to some numbers only...
can... (3 Replies)
Discussion started by: dprakash
3 Replies
4. Shell Programming and Scripting
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
5. UNIX for Dummies Questions & Answers
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
6. UNIX for Dummies Questions & Answers
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
7. UNIX for Dummies Questions & Answers
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
8. Shell Programming and Scripting
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
9. Shell Programming and Scripting
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
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
CGlue(3U) InterViews Reference Manual CGlue(3U)
NAME
CGlue - connector glue
SYNOPSIS
#include <Unidraw/cglue.h>
DESCRIPTION
CGlue defines a natural size, elasticity (its rate of stretching and shrinking relative to other CGlue), and deformation limits (total
amount it can stretch and shrink) in both the horizontal and vertical dimensions. CGlue can be interposed between two connected connectors
to augment their connectivity semantics; it acts like two non-linear springs, one horizontal and one vertical, connecting the connectors'
centers.
PUBLIC OPERATIONS
CGlue(
float hnat = 0, float vnat = 0,
float hshr = 0, float hstr = 0,
float vshr = 0, float vstr = 0,
float hshrlim = 0, float hstrlim = 0,
float vshrlim = 0, float vstrlim = 0
)
CGlue(const Shape&)
Instantiate CGlue, providing the requisite parameters explicitly or inferring them from a Shape object. If a shape is supplied,
then the CGlue adopts the shape's natural size, and it assigns the shape's stretchability and shrinkability values to its corre-
sponding CGlue elasticity members to obtain a proportionately equivalent elasticity. It also assigns the shape's stretchability and
shrinkability values to its deformation limit members. The parameters are described below:
hnat, vnat: horizontal and vertical natural sizes, screen units
hshr, vshr: horizontal and vertical shrinking rate, constant units
hstr, vstr: horizontal and vertical stretching rate, constant units
hshrlim, vshrlim: horizontal and vertical shrink limit, screen units
hstrlim, vstrlim: horizontal and vertical stretch limit, screen units
CGlue* Copy()
Create a copy of this CGlue instance.
void Rigid()
Set all elasticity and deformation limits equal to zero.
void Interpose(const CGlue* glue)
Change this instance's attributes to reflect the series combination of this and glue.
SEE ALSO
Connector(3U), Shape(3I)
Unidraw 23 November 1990 CGlue(3U)