]> git.phdru.name Git - ppu.git/blob - docs/index.rst
476a8a48208c7dc57ee3424a2db2cdf307b0476f
[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 rm.py
49 ~~~~~
50
51 Remove files or directories. Ask interactively to remove read-only files or
52 directories.
53
54 Usage::
55
56     rm.py [-r] name1 [name2...]
57
58 Options::
59
60     -r, --recursive
61                            recursively remove directories
62
63 which.py
64 ~~~~~~~~
65
66 Find a program in PATH and print full path to it.
67
68 Usage::
69
70     which.py program
71
72 Indices and tables
73 ==================
74
75 * :ref:`genindex`
76 * :ref:`modindex`
77 * :ref:`search`