i need a custom script to perform a few functions
it must add a counter key starting from key 0 to the end of the file
example in php i would use a for(i=0; i!=EOF; i++) statement
heres the first line of the file and all is consistant except i need a incrementing key to be produced .....
oringinal line of file
new line should read
next reads 1, then 2, and the data from the line read
thanks in advance