Thanks for your reply but i think you misunderstood my question
I need to read values from my file, so i'm using: while read line do
Then the value stored in "line" must be incremented in one
and now i use sed -n${line}p file> file1
thanks
the problem is that i don't have "let" in ms dos and i need to run this script in ms dos
Therefore i was asking is someone knows how to do it with awk or sed (for example)