Solved

column to row

Posted on 2002-04-06
4
442 Views
Last Modified: 2010-04-21
How to convert a single column data to a row using  
unix command(s)? For example, convert
   4
   12
   A
   B33
to
   
   4    12   A   B33

Thank you.
0
Comment
Question by:geermu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 100 total points
ID: 6923404
tr '\012' ' '
0
 
LVL 5

Expert Comment

by:ecw
ID: 6924227
echo `cat file`
0
 
LVL 3

Expert Comment

by:elfie
ID: 6924877
another one :

for i in `cat file`
do
print -n $i" " 
done

Between " " you can put some delimiters.
0
 

Author Comment

by:geermu
ID: 6925685
Outstanding! Thank you all.
I will accept ozo's comment as an answer. ¡¡
I will £á£ì£ó£ï¡¡£ã£ò£å£á£ô¡¡£á£ä£ä£ô£é£ï£î£á£ì¡¡£ô£÷£ï¡¡£ñ£õ£å£ó£ô£é£ï£î£ó
£ï£æ¡¡£µ£°¡¡£ð£ï£é£î£ô£ó¡¡£æ£ï£ò¡¡£å£ã£÷¡¡£á£î£ä¡¡£å£ì£æ£é£å¡¡£æ£ï£ò¡¡£ô£è£å
£è£å£ì£ð£æ£õ£ì¡¡£é£î£æ£ï£ò£í£á£ô£é£ï£î¡¡£ð£ò£ï£ö£é£ä£å£ä£®
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question