#!/bin/bash ## filter to convert a list of words from one-per-line to space-separated form; by Eugene Reimer 2008-11: tr '\n' ' ' |sed 's| $|\n|' ##translate newline->space, then revise the ending space back to newline exit see notes on canonic-form in the companion routine sp2nl