Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Convert a horizontal lines to vertical lines in a csv file Post 303039198 by Raghuram717 on Thursday 26th of September 2019 02:33:08 AM
Old 09-26-2019
Convert a horizontal lines to vertical lines in a csv file

Hi..
I need some help in converting the below horizontal lines to vertical lines format.
can anyone help me on this.

input file
Code:
 Hour,1,2,3,4,5
 90RT,106,111,111,112,111

output file
Code:
Hour,90RT
1,106
2,111
3,111
4,112
5,111


Last edited by Raghuram717; 09-26-2019 at 03:45 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Horizontal sorting of lines in a File: SED implementation?

Hi guys, Do you know how can I sort a file horizontally per line??? sample input file: zebra papa dog apple yahoo kangaroo ape sample output: apple dog papa zebra ape kangaroo yahoo Please post if u know the sed implementation of this (or whatever implementation u may know of)... (7 Replies)
Discussion started by: marlonus999
7 Replies

2. Linux

Horizontal Lines

Jan 18, 2010 14:15:31 GMT Hello, I get horizontal black lines after each line of text and every blank line is colored black. I am using HP Color LaserJet... (5 Replies)
Discussion started by: H_P
5 Replies

3. UNIX for Dummies Questions & Answers

Delete vertical lines in an text file

Hi everybody! I need to delete several vertical lines in a huge text file. It should work like the example below. Delete the vertical lines 2 and 8. 123456789 masldfjla afsajfwel sajfljsaf safsarfrl sajfeljwq 1345679 msldfja asajfwl sjfljsf sfsarfl sjfeljq Is there a... (11 Replies)
Discussion started by: relaxo
11 Replies

4. 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

5. 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

6. 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

7. Shell Programming and Scripting

change log vertical to horizontal lines

Hi, Need help unix command to change this : become this Anyone can help me?:wall: (2 Replies)
Discussion started by: justbow
2 Replies

8. Shell Programming and Scripting

Vertical And Horizontal Pivoting

Hi All, My Input data is: A=1 B=2 My desired Output should be: A|B 1|2 Thanks in advance... (3 Replies)
Discussion started by: kmsekhar
3 Replies

9. 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

10. 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
XmInstallImage(library call)											      XmInstallImage(library call)

NAME
XmInstallImage -- A pixmap caching function that adds an image to the image cache SYNOPSIS
#include <Xm/Xm.h> Boolean XmInstallImage( XImage * image, char * image_name); DESCRIPTION
XmInstallImage stores an image in an image cache that can later be used to generate a pixmap. Part of the installation process is to extend the resource converter used to reference these images. The resource converter is given the image name so that the image can be ref- erenced in a .Xdefaults file. Since an image can be referenced by a widget through its pixmap resources, it is up to the application to ensure that the image is installed before the widget is created. image Points to the image structure to be installed. The installation process does not make a local copy of the image. Therefore, the application should not destroy the image until it is uninstalled from the caching functions. image_name Specifies a string that the application uses to name the image. After installation, this name can be used in .Xdefaults for ref- erencing the image. A local copy of the name is created by the image caching functions. The image caching functions provide a set of eight preinstalled images. These names can be used within a .Xdefaults file for generating pixmaps for the resource for which they are provided. +---------------+---------------------------------------------------+ |Image Name | Description | +---------------+---------------------------------------------------+ |background | A tile of solid background | +---------------+---------------------------------------------------+ |25_foreground | A tile of 25% foreground, 75% background | +---------------+---------------------------------------------------+ |50_foreground | A tile of 50% foreground, 50% background | +---------------+---------------------------------------------------+ |75_foreground | A tile of 75% foreground, 25% background | +---------------+---------------------------------------------------+ |horizontal | A tile of horizontal lines of the two colors | +---------------+---------------------------------------------------+ |vertical | A tile of vertical lines of the two colors | +---------------+---------------------------------------------------+ |slant_right | A tile of slanting lines of the two colors | +---------------+---------------------------------------------------+ |slant_left | A tile of slanting lines of the two colors | +---------------+---------------------------------------------------+ |menu_cascade | A tile of an arrow of the foreground color | +---------------+---------------------------------------------------+ |menu_checkmark | A tile of a checkmark of the foreground color | +---------------+---------------------------------------------------+ |menu_dash | A tile of one horizontal line of the foreground | | | color | +---------------+---------------------------------------------------+ +---------------+---------------------------------------------------+ RETURN
Returns True when successful; returns False if NULL image, NULL image_name, or duplicate image_name is used as a parameter value. RELATED
XmUninstallImage(3), XmGetPixmap(3), and XmDestroyPixmap(3). XmInstallImage(library call)
All times are GMT -4. The time now is 11:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy