The UNIX and Linux Forums  

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 -->
  #3 (permalink)  
Old 01-11-2008
shamrock shamrock is offline Forum Advisor  
Registered User
  
 

Join Date: Oct 2007
Location: USA
Posts: 753
Quote:
Originally Posted by cdfd123 View Post
if u have a data

2 4 6 8 5 4 4 5 6

then result shud be like
2
4
6
7
5
4
4
5
6
Code:
echo 2 4 6 8 5 4 4 5 6 | tr ' ' '\n'