I've tried to join lines with sed. GNU sed 4.1.5 works ok: # echo -e "a\nb\nc" | sed ":a;N;s/\n/ /;ta" a b c # echo -e "a\nb\nc" | sed "N;s/\n/ /" a b c Busybox does not: # echo -e "a\nb\nc" | sed ":a;N;s/\n/ /;ta" # echo -e "a\nb\nc" | sed "N;s/\n/ /" a b The behaviour is the same for version 1.5.2, 1.16.2 and 1.17.1. Thomas