summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2011-11-03 19:45:52 +0000
committerNick White <git@njw.me.uk>2011-11-03 19:45:52 +0000
commitaae23d585ddb3efa25e5ebfc07bf7c0d7dd5acd2 (patch)
tree7251781e7eb7e15d7d57626fa4ba70acb60c861a
parent92667d0f40c859c8e03ef57dcd2b79961b9a9622 (diff)
Add example usages to man page
-rw-r--r--getabook.17
-rw-r--r--getgbook.17
2 files changed, 14 insertions, 0 deletions
diff --git a/getabook.1 b/getabook.1
index acdae51..58ef5c5 100644
--- a/getabook.1
+++ b/getabook.1
@@ -20,3 +20,10 @@ line).
is the unique ID Amazon assigns to each product. It is 10
characters long. It can be found by looking for the
\'/xxxxxxxxxx/\' part of the URL of its Amazon page.
+.SH EXAMPLES
+.TP
+.B download all available pages of a book
+getabook 161293031X
+.TP
+.B download the first 5 pages of a book
+seq 5 10 | getgbook -n 161293031X
diff --git a/getgbook.1 b/getgbook.1
index b38af69..f374bbf 100644
--- a/getgbook.1
+++ b/getgbook.1
@@ -44,3 +44,10 @@ However Google Books also limits the number of pages based on
IP address, for 24 hours. Therefore if not all pages are
downloaded it may be worth rerunning getgbook in 24 hours, or
from a different IP.
+.SH EXAMPLES
+.TP
+.B download all of a book
+getgbook ta1uaL7RF5g
+.TP
+.B download the first 100 pages of a book
+seq 100 | getgbook -n ta1uaL7RF5g