![]() |
|
|
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 |
| Using variables created sequentially in a loop while still inside of the loop [bash] | DeCoTwc | Shell Programming and Scripting | 2 | 06-23-2009 05:59 PM |
| Script to open program and send/execute command in program | tuathan | UNIX for Dummies Questions & Answers | 1 | 11-19-2008 09:59 PM |
| A program to trace execution of another program | jiten_hegde | High Level Programming | 3 | 08-19-2008 06:26 AM |
| redirect variable to same program at next loop | csecnarf | Shell Programming and Scripting | 0 | 06-16-2008 07:44 AM |
| While loop program | bobo | UNIX for Dummies Questions & Answers | 2 | 07-26-2006 04:07 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
program in loop.
eg: sample.dat
21111111110000652 B86860003OLFXXX0000001_20081227 21111111110000652 B86860003ODL-SP0000002_20081227 21111111110000652-B94030001ODL-CH0000003_20081227 22222222220000653-B94030001OLFXXX0000011_20081227 23333333330000654-E71060001OLFXXX0000012_20081227 24444444440000655 E71060002OLFXXX0000014_20081227 24444444440000655 E71060002ODL-SP0000015_20081227 ..... ..... I Want to write a program in ksh script in such a way (while read line do) that the out txt file should look like below outfile.txt 21111111110000652 B86860003OLFXXX000000120081227 0000002 0000003 22222222220000653-B94030001OLFXXX000001120081227 23333333330000654-E71060001OLFXXX000001220081227 24444444440000655 E71060002OLFXXX000001420081227 0000015 thx |
|
||||
|
|
|
|||||
|
Bumping up posts or double posting is not permitted in these forums.
Please read the rules, which you agreed to when you registered, if you have not already done so. You may receive an infraction for this. If so, don't worry, just try to follow the rules more carefully. The infraction will expire in the near future Thank You. The UNIX and Linux Forums. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|