The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 02-18-2008
otes4 otes4 is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 3
using tr to put multiple lines of output into one line

Hi all,

For a intro UNIX course I'm taking, I need to use the command "tr" to display a file on standard output without any newlines (all on one line).

I assume I would start with "cat filename | tr" but don't know what to put after tr.

Any ideas would be lovely!
Thanks.