Jeff Schroeder writes: > echo $list | sed s/" "/"^M"/g Try: perl -e 'print(join("\n", @ARGV), "\n")' $list Rob