Link to home
Start Free TrialLog in
Avatar of geermu
geermu

asked on

column to row

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.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ecw
ecw

echo `cat file`
another one :

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

Between " " you can put some delimiters.
Avatar of geermu

ASKER

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