I need to code for number of sets, page start and end numbers based on number of pages provided. For example if I have 153000 pages there will be 4 sets based on the fact that each set gets 50000 pages each. So the page numbers would be 1-50000, 50001-100000, 100001-150000, 150001-153000. How do I achieve this using Perl script?
@gaun, not sure what you are after... , below a bash script that might be suited, if not , you need to supply unambiguous details ( ideally with a fully worked example showing inputs and expected results ) so the team can come back with suggestions. A reminder that the forum is primarily a collaboration, show show working and ask how if fix/improve etc, we supply those ( perhaps multiple iterations of)