Hi.
The version of paste may vary, this works for me:
Code:
#!/bin/bash -
# @(#) s1 Demonstrate paste with null string delimiter.
echo
echo "(Versions displayed with local utility \"version\")"
version >/dev/null 2>&1 && version =o $(_eat $0 $1) paste
echo
echo "123abc" >data1
echo "123 abc" >data2
echo " paste with null string delimiter:"
paste -d "" data1 data2
exit 0
Producing:
Code:
% ./s1
(Versions displayed with local utility "version")
Linux 2.6.11-x1
GNU bash 2.05b.0
paste (coreutils) 5.2.1
paste with null string delimiter:
123abc123 abc
The paste with
\0 produced:
with my paste.
I noticed on Solaris that my script fails with error message:
Code:
paste: no delimiters
but using
Code:
paste -d '\0' data1 data2
seemed to work (note the quotes) ... cheers, drl