The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 -->
  #4 (permalink)  
Old 05-28-2009
mohan705 mohan705 is offline
Registered User
  
 

Join Date: Feb 2007
Posts: 134
Hi

I tried that only giving 4 recordss,I want first column to be incremente by 1 .
Code:
file.txt

102345  1000 200  300
...............................
..............................
102346  2000 300  4000


I am expecting o/p like this

file.txt

102345  1000 200  300

102346  200 300 400

102347  200 300 400

102348  200 300 400

102349  200 300 400
.............................
..............................
102400  200 300 400
Thank in advance
MR