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 -->
  #6 (permalink)  
Old 02-06-2007
radoulov's Avatar
radoulov radoulov is offline Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,926
Quote:
Originally Posted by Rock
Please advise what approach can remove all line break from a text file?
e.g.
Source file:
A
B
C

Target file:
A, B, C
[...]

Code:
awk '$1=$1' OFS=", " RS= infile

Use nawk on Solaris.