The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
using tr to put multiple lines of output into one line
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
using tr to put multiple lines of output into one line
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-18-2008
Tytalus
echo {1..9}^2\;|bc
Join Date: Jun 2003
Location: Scotland
Posts: 440
Code:
tr "\n" " " < filename
i.e. change newlines (\n) to spaces
HTH
Last edited by Tytalus; 02-18-2008 at
11:21 AM
.. Reason: oops - can't type today :-)
Tytalus
View Public Profile
Find all posts by Tytalus