cat command

I would like to append some statement into 1 single file so that it can be concatenate together in 1 word. I have tried >> but it will seperate my 2 statement into 2 rows.

# cat abc.txt cde.txt > result.txt
where abc.txt is "abcde" and cde.txt is "12345"
the result should come out as "abcde12345"

I also tried
# cat abc.txt > result.txt
# cat cde.txt >> result.txt

Both not working.

Here is one quick and dirty way of doing it:

paste -s -d"\0" result.txt > new_result.txt

paste -d' ' abc.txt cde.txt > result.txt

Hi, I have tried the suggestion of you all and they works fine. Thanks a lot for the help. But now I have another question which is also part of the paste command question.

I have a scripts to backup some files (which will have different filename according to the date) using pax command and some condition to met as well. Due to the filename will change according to date, I am thinking of using paste command to paste the script line by line into a script file and run the script file after it has been constructed.

script file to be executed: (sh_menu.sh)
#!/bin/sh
if [ `df -k /u01/EXPORT | awk '{getline; print $3}'` -ge `expr 5 \* 1024 \* 1024` ] ; then
cd /u01/EXPORT
pax -wvf /dev/rmt0 ./dataddmmyyyy/*.dbf
echo "File system being backup is ddmmyyyy"
else
echo "Disk space low."
fi

Thus, I will need another script to form the above script.

I will need to create some text file which contained
header1.txt = "#!/bin/sh"
header2.txt = "if [ `df -k /u01/EXPORT | awk '{getline; print $3}'` -ge `expr 5 \* 1024 \* 1024` ] then"
header3.txt = "cd /u01/EXPORT"
body1.txt = "pax -wvf /dev/rmt0 ./data"
body2.txt = "/*.dbf"
body3.txt = "echo "File system being backup is "
body4.txt = """
body5.txt = "else"
body6.txt = "echo "Disk space low.""
body7.txt = "fi"

And then use a script to combine all these files. (Main.sh)
#!/usr/bin/ksh
date '+%m %d %Y' |
{ read MONTH DAY YEAR
echo $YEAR$MONTH$DAY > var1.txt
A=`paste -d'\n' body1.txt var1.txt body2.txt > temp1.txt`
B=`paste -d'\n' body3.txt var1.txt body4.txt > temp2.txt`
C=`paste -s -d'\0' temp1.txt > tempbody1.txt`
D=`paste -s -d'\0' temp2.txt > tempbody2.txt`
E=`paste -d'\n' header1.txt header2.txt header3.txt temp1.txt temp2.txt body5.txt body6.txt body7.txt > sh_menu.sh`
F=`./sh_menu.sh`

Is there any other simple way to do it?