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 -->
  #3 (permalink)  
Old 04-22-2009
devtakh devtakh is offline
Registered User
  
 

Join Date: Oct 2007
Location: Bangalore
Posts: 514
Quote:
Originally Posted by rsriramiyer View Post
I have a file temp.dat. The contents of this file is as follows

abcdefgh
abcdefgh
abcdefgh
abcdefgh
abcdefgh
abcdefgh


The multiple records in this file needs to be converted in to a single record.

abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh abcdefgh
awk '{printf $0 " " ;next}' filename


cheers,
Devaraj Takhellambam