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 -->
  #2 (permalink)  
Old 07-17-2006
aigles's Avatar
aigles aigles is online now Forum Advisor  
Registered User
  
 

Join Date: Apr 2004
Location: Bordeaux, France
Posts: 1,428
On my AIX box :
Code:
newform -l50 -a -b /foo > bar
and for all Unix with awk :
Code:
awk '{printf'"%-50.50s\n",$0)}' /foo > bar
Jean-Pierre.