J'ai écrit pour un cours en 1997 un document d'introduction, que vous pouvez télécharger d'ici. Tous les commentaires et critiques sont les bienvenus.
Ce document peut être reproduit, imprimé et distribué librement pour une utilisation non lucrative, tant que l'auteur original en garde le crédit.
Here are some of the perl scripts I wrote some years ago.
strip
to
the files that need it, and many other things. There is a bunch
of options, that are all explained in the man
page (in english)..cleanrc
). This file is
automatically
generated the first time you run the program. Maybe you'd want to
see an example of this config file.
Note: the script builds the code for the loop that
examines all the files in the specified tree, so the code is
absolutely unreadable. To see the generated code, run
clean -C
.
Some tips: Type clean -h
to get some
help. Type clean -o
to
see which files are to be
deleted/compressed and the state of options.
Something new: when you type clean -cf
, the
script will only check for the files to be deleted and compressed, and
put the list into the file ~/.clean-history
(that's not
new). You can the edit the ~/.clean-history
file to
remove for instance the files that you do not want to delete
and invoke clean -pf
, which will actually do the
actions suggested in the file, ie will actually delete the files
specified in the .clean-history
file. It is faster,
and allows you to choose what files are to be deleted or
compressed.
Here are the pointers to :
$first_line
contains a regexp
that should be matched before the program really processes
the lines, in order to skip the garbage before.
$bottom_lines
is printed at the
bottom of each file produced.
One file is produced for each category. To declare a category,
it must be a comment, starting with one or two #
,
followed by one or more spaces, and then the category name. For
instance :
# Category name