]> git.phdru.name Git - ppu.git/blob - docs/index.rst
Add cmp.py
[ppu.git] / docs / index.rst
1 .. ppu documentation master file, created by
2    sphinx-quickstart on Sat Apr 15 20:37:34 2017.
3    You can adapt this file completely to your liking, but it should at least
4    contain the root `toctree` directive.
5
6 Portable Python Utilities
7 =========================
8
9 .. toctree::
10    :maxdepth: 2
11    :caption: Contents:
12
13    install
14    news
15
16 .. highlight:: none
17
18 Command line
19 ------------
20
21 cmp.py
22 ~~~~~~
23
24 Compare two files.
25
26 Usage::
27
28     cmp.py file1 file2
29
30 remove-old-files.py
31 ~~~~~~~~~~~~~~~~~~~
32
33 Remove old files. It's a portable replacement for
34 `find start_dir -type f -mtime +31 -delete`.
35
36 Usage::
37
38     remove-old-files.py [-e] -o days start_dir
39
40 Options::
41
42     -e, --empty-dirs
43                            remove empty directories
44     -o days, --older days
45                            remove files older than this number of days;
46                            this is a required option
47
48 Indices and tables
49 ==================
50
51 * :ref:`genindex`
52 * :ref:`modindex`
53 * :ref:`search`