Statistics
| Revision:

root / tmp / org.txm.setups / directoryCleaner.sh @ 1803

History | View | Annotate | Download (168 Bytes)

1 728 mdecorde
#!/bin/bash
2 728 mdecorde
3 728 mdecorde
if [ $1 ]
4 728 mdecorde
then
5 728 mdecorde
 find $1 -name ".svn" -exec rm -rfv {} + &&
6 728 mdecorde
 find $1 -name "*~" -exec rm -rfv {} +
7 728 mdecorde
else
8 728 mdecorde
 echo "need 1 arg : directory to clean"
9 728 mdecorde
 exit 1
10 728 mdecorde
fi