View Single Post
Old 27th May 2009
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 192
Default

Quote:
Originally Posted by gosha View Post
the page number means the actual page number according to the djvu order (like in a pdf file, the thumbnails are ordered 1 2 3 etc, but on the actual picture the number might be different). If I run djvm with pagenumber 3, it will delete the third image, and of course, after deleting it, the fourth image will have become the third etc.
Anyway, I've solved it running n times the command on page one. It was a way to learn some more scripting. Very bad that this djvm command does not support page ranges...
I'm not familiar with djvm, but maybe:
Code:
#!/bin/sh
count=1
until [ $count -gt 10 ]; do
          djvm -d file.djvu 1
          count=`$count + 1`
done
That would delete (or wathever) first 10 pages (if the pages change the way you described).
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote