View Single Post
  #2   (View Single Post)  
Old 22nd September 2008
anomie's Avatar
anomie anomie is offline
Local
 
Join Date: Apr 2008
Location: Texas
Posts: 445
Default

One easy way is with tr(1):
% cat text_file | tr '\n' ' '

But watch out -- that will strip off the very last newline as well (which you probably don't want).
__________________
Kill your t.v.
Reply With Quote