Jody Grafals wrote:

> Dose anyone know how to replace a line break with a space using sed or
> awk?
> 
> for example 
> 
> cat
> dog 
> goat 
> duck 
> 
> would become 
> 
> cat dog goat duck 

This should do, and it's simpler than either sed or awk:

    tr '\n' ' '

Craig

Attachment: msg24097/pgp00000.pgp
Description: PGP signature

Reply via email to