![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Breaking line | scorp_rahul23 | Shell Programming and Scripting | 4 | 09-18-2008 08:45 AM |
| text width | sharanbr | UNIX for Dummies Questions & Answers | 2 | 06-09-2008 06:02 AM |
| Unix Script with line number at beginning of each line. | mascorro | Shell Programming and Scripting | 5 | 06-19-2006 04:34 PM |
| User ID width | thmnetwork | Linux | 4 | 04-09-2005 01:50 PM |
| Command Line width parameter | Scoogie | UNIX for Dummies Questions & Answers | 2 | 02-08-2002 05:04 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Breaking up of a fixe width line in unix
Hi,
I need some help with breaking up a given line based on 'fixed width' file. Something like this: After the breaking up, I need to have this output format... First line should have the first 134 characters. Starting from second line, I should have one line every 61 characters of the original line. Please note that there is only ONE line in the inbound file. so, lets say I have this line: Code:
CICS 4 7050 1010 9D103670833 1010 9D7006406542 I should have this line broken up into this: Code:
Line 1: CICS 4 7050 Line 2: 1010 9D103670833 Line 3: 1010 9D7006406542 |
|
||||
|
Slight change in the answer.
Joey/anybody,
Is there anyway to generically add this to do this indefinitely? because, you are taking 61 character from 135 and 196 columns...how do I write this for the size of the line I wouldn't know about? Rahul. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|