importation initiale dans git
This commit is contained in:
19
rmtildes
Executable file
19
rmtildes
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
# -*- coding: utf-8 mode: sh -*- vim:sw=4:sts=4:et:ai:si:sta:fenc=utf-8
|
||||
|
||||
if [ $# == 1 -a "$1" == --help ]; then
|
||||
echo "rmtildes: supprimer les fichiers *~ dans le répertoire courant
|
||||
|
||||
USAGE
|
||||
rmtildes [dir [glob]]
|
||||
|
||||
Par défaut, dir==. et glob==*~"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
RM_OPTS="${RM_OPTS:--f}"
|
||||
|
||||
basedir="${1:-.}"
|
||||
pattern="${2:-*~}"
|
||||
|
||||
find "$basedir" -type f -name "$pattern" -print -exec /bin/rm $RM_OPTS "{}" \;
|
||||
Reference in New Issue
Block a user