diddle 0 Newbie Poster

Can anyone help me for shell programming basic concept?


I want to print
the number from 1 to 10 in file1.txt
from 2 to 11 in file2.txt
from 3 to 12 in file3.txt
from 4 to 13 in file4.txt
.
.
.
from 21 to 30 in file21.txt


How to write a shell script for this overlap number sequence?
for example
My code like the following will print from number 1 to 10 in file1.txt. Can anybody help me, how to write for other parts?

set i = 1
while ($i >=1 && $i <=10)
echo $i >> file1.txt
@ i = $i + 1
end

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.