Solved

column to row

Posted on 2002-04-06
4
419 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

919 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now