View Single Post
  #1   (View Single Post)  
Old 26th May 2009
gosha gosha is offline
Spam Deminer
Join Date: Jun 2008
Location: China
Posts: 256
Default run same command many times with diff args

I need to delete some pages from quite a few .djvu files. The problem is the djvm command only accepts one page, no page ranges. So, how do I run the same command but increasing by one every time until a certain number?
The djvm command looks like this:
djvm -d file.djvu pagenumber
If I need to delete, say, page 1 to 10, how do I tell the script to increase the pagenumber until it reaches 10?
Reply With Quote