-
Notifications
You must be signed in to change notification settings - Fork 25
/
getstats.sh
executable file
·65 lines (57 loc) · 3.38 KB
/
getstats.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh
VOLI="realanal.tex ch-vol1-intro.tex ch-real-nums.tex ch-seq-ser.tex ch-contfunc.tex ch-der.tex ch-riemann.tex ch-seq-funcs.tex ch-metric.tex"
VOLII="realanal2.tex ch-several-vars-ders.tex ch-one-dim-ints-sv.tex ch-multivar-int.tex ch-approximate.tex"
echo
echo "Volume I"
echo "Chapters:\t\t"`grep '^[\]chapter\**{' $VOLI | wc -l`
echo "Sections:\t\t"`grep '^[\]section\**{' $VOLI | wc -l`
echo "Sections \\w exercises:\t"`grep '^[\]subsection{Exercises}' $VOLI | wc -l`
echo "Exercises:\t\t"`grep '^[\]begin{exercise' $VOLI | wc -l`
echo "Figures:\t\t"`grep '^[\]begin{myfigureht' $VOLI | wc -l`
echo "Footnotes:\t\t"`grep '[\]footnote{' $VOLI | wc -l`
echo
echo "Volume II"
echo "Chapters:\t\t"`grep '^[\]chapter\**{' $VOLII | wc -l`
echo "Sections:\t\t"`grep '^[\]section\**{' $VOLII | wc -l`
echo "Sections \\w exercises:\t"`grep '^[\]subsection{Exercises}' $VOLII | wc -l`
echo "Exercises:\t\t"`grep '^[\]begin{exercise' $VOLII | wc -l`
echo "Figures:\t\t"`grep '^[\]begin{myfigureht' $VOLII | wc -l`
echo "Footnotes:\t\t"`grep '[\]footnote{' $VOLII | wc -l`
echo
echo "Both volumes"
echo "Chapters:\t\t"`grep '^[\]chapter\**{' $VOLI $VOLII | wc -l`
echo "Sections:\t\t"`grep '^[\]section\**{' $VOLI $VOLII | wc -l`
echo "Sections \\w exercises:\t"`grep '^[\]subsection{Exercises}' $VOLI $VOLII | wc -l`
echo "Exercises:\t\t"`grep '^[\]begin{exercise' $VOLI $VOLII | wc -l`
echo "Figures:\t\t"`grep '^[\]begin{myfigureht' $VOLI $VOLII | wc -l`
echo "Footnotes:\t\t"`grep '[\]footnote{' $VOLI $VOLII | wc -l`
echo
echo Chapter count includes introductions.
echo
echo Figures per chapter
echo "Chapter 0:\t\t"`grep '^[\]begin{myfigureht' ch-vol1-intro.tex | wc -l`
echo "Chapter 1:\t\t"`grep '^[\]begin{myfigureht' ch-real-nums.tex | wc -l`
echo "Chapter 2:\t\t"`grep '^[\]begin{myfigureht' ch-seq-ser.tex | wc -l`
echo "Chapter 3:\t\t"`grep '^[\]begin{myfigureht' ch-contfunc.tex | wc -l`
echo "Chapter 4:\t\t"`grep '^[\]begin{myfigureht' ch-der.tex | wc -l`
echo "Chapter 5:\t\t"`grep '^[\]begin{myfigureht' ch-riemann.tex | wc -l`
echo "Chapter 6:\t\t"`grep '^[\]begin{myfigureht' ch-seq-funcs.tex | wc -l`
echo "Chapter 7:\t\t"`grep '^[\]begin{myfigureht' ch-metric.tex | wc -l`
echo "Chapter 8:\t\t"`grep '^[\]begin{myfigureht' ch-several-vars-ders.tex | wc -l`
echo "Chapter 9:\t\t"`grep '^[\]begin{myfigureht' ch-one-dim-ints-sv.tex | wc -l`
echo "Chapter 10:\t\t"`grep '^[\]begin{myfigureht' ch-multivar-int.tex | wc -l`
echo "Chapter 11:\t\t"`grep '^[\]begin{myfigureht' ch-approximate.tex | wc -l`
echo
echo Exercises per chapter
echo "Chapter 0:\t\t"`grep '^[\]begin{exercise' ch-vol1-intro.tex | wc -l`
echo "Chapter 1:\t\t"`grep '^[\]begin{exercise' ch-real-nums.tex | wc -l`
echo "Chapter 2:\t\t"`grep '^[\]begin{exercise' ch-seq-ser.tex | wc -l`
echo "Chapter 3:\t\t"`grep '^[\]begin{exercise' ch-contfunc.tex | wc -l`
echo "Chapter 4:\t\t"`grep '^[\]begin{exercise' ch-der.tex | wc -l`
echo "Chapter 5:\t\t"`grep '^[\]begin{exercise' ch-riemann.tex | wc -l`
echo "Chapter 6:\t\t"`grep '^[\]begin{exercise' ch-seq-funcs.tex | wc -l`
echo "Chapter 7:\t\t"`grep '^[\]begin{exercise' ch-metric.tex | wc -l`
echo "Chapter 8:\t\t"`grep '^[\]begin{exercise' ch-several-vars-ders.tex | wc -l`
echo "Chapter 9:\t\t"`grep '^[\]begin{exercise' ch-one-dim-ints-sv.tex | wc -l`
echo "Chapter 10:\t\t"`grep '^[\]begin{exercise' ch-multivar-int.tex | wc -l`
echo "Chapter 11:\t\t"`grep '^[\]begin{exercise' ch-approximate.tex | wc -l`