Hi All,
I have a sample file with content:
I need to get it like this:
Basically row to column and column to row. I am trying to use this:
But its showing output as
Can anyone help please?
Thanks,
RK
I have a sample file with content:
Code:
[root@xyx1 tmp]# cat test1.txt
mahesh
suresh
anil
[root@xyx1 tmp]#
Code:
m s a
a u n
h r i
e e l
s s
h h
Code:
while read line
do
echo $line | fold -bw 1
done<test1.txt
Code:
m
a
h
e
s
h
s
u
r
e
s
h
a
n
i
l
Thanks,
RK
Moderator's Comments: | ||
|