![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script for data formatting | shekhar_v4 | Shell Programming and Scripting | 6 | 01-27-2009 01:34 AM |
| Re-formatting of data display | Raynon | Shell Programming and Scripting | 6 | 11-12-2008 10:50 PM |
| Formatting Data | nmeliasp | UNIX for Dummies Questions & Answers | 3 | 07-24-2008 08:53 PM |
| Formatting info into columns | straight_edge | Shell Programming and Scripting | 8 | 02-05-2007 11:51 AM |
| Text formatting to 132 columns | jmossman | UNIX for Dummies Questions & Answers | 16 | 05-06-2002 09:34 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Formatting a line of data into columns
Hi all, I'm a little stuck with a data file I've been collecting data in. The file contains one field of data running continuously down the file and I can't work out how to format the data into three columns. This is a mock up of the file: Each r# is a random number and varies in length, this goes down the file for a long ways. Code:
r1 r2 r3 r1 r2 r3 r1 r2 r3 This is how i'd like it to look with three columns of data. Code:
r1 r2 r3 r1 r2 r3 r1 r2 r3 Also with awk I can get data based on a field number ($1, $2) is there anyway of selecting data based on a line number? Thanks for any responses, nistleloy |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|