On Wed, Jan 31, 2007 at 11:40:51AM +0100, Stephane Engel wrote:
> Hi list,
>
> I'm trying to merge all the line of a text file in a single line
> separate by a "#".
What is wrong with:
$ tr '\n' '#'
Or to delete the trailing '#':
$ text=$(tr '\n' '#' <file)
$ hash='#'; echo "${text%$hash}"
David
--
David Laight: david@l8s.co.uk