Using awk:
cat file | awk '{if(NR==1){printf "%s", $0;}else{printf " %s", $0;}}'
Cheers,
Bruno.
On Tue, 2003-01-14 at 13:42, 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
>
> Thanks in advanced
> Jody
--
Bruno Diniz de Paula <diniz@cs.rutgers.edu>
Rutgers University
Attachment:
signature.asc
Description: This is a digitally signed message part