Skip to content
Newer
Older
100755 19 lines (16 sloc) 318 Bytes
2c44941 added scripts and readme
Daniel Kirstenpfad authored
1 #!/bin/bash
2
3 echo "Cleaning directory: "$1
4 echo
5
6 for Dirs in $(ls -ad $1); do
7 if [ -d $Dirs ] ; then
8 for entry in $@; do
9 if [ $entry != $1 ] ; then
10 files=$(find $1 -name "$entry")
11 for files in $files; do
12 rm -f $files
13 echo "the following file was removed:" $files
14 done
15 fi
16 done
17 fi
18 done
Something went wrong with that request. Please try again.