The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 01-10-2008
drl's Avatar
drl drl is offline
Registered User
 

Join Date: Apr 2007
Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 580
Hi.

I think the columns command is somewhat deceiving. The option "-c" does allow you to specify "columns", but it is the column-width of the display area, not "columns" of data.

A useful exercise might be to find the length of the file in lines, split the file, and use paste to read the splits -- provided the data fits into data-columns within the display-columns ... cheers, drl
Reply With Quote