can anybody help me..
how to transfer data from row become column
my file is below
aaa
bbb
ccc
ddd
and become
aaa bbb ccc ddd
can anybody help me..
how to transfer data from row become column
my file is below
aaa
bbb
ccc
ddd
and become
aaa bbb ccc ddd
xargs <yourfile
xargs -n4 <yourfile
paste - - - - <yourfile
or
paste -s -d " " <yourfile
awk 1 ORS=" " infile
you can try this also..
Regards,
Usha
open the file in vim, then press:
ggvGJ
How many ways to skin a cat? Here are two more methods to try...
echo `cat /tmp/mb`
echo $(</tmp/mb)
Lot of soutions, you do not nedd another one, that i know. but simply if you want to show ur manager that u uesd lot of things to achive it and ur manager do not undersatnd shell scripting
file is input file, opt is output file
for var in `cat file`
do
echo $var" \c" >> opt
done