Quote:
|
Originally Posted by jack1981
I ran it in my script and it says missing argument for -exec
|
do not forget <space>:
find $TRASH/$1 -type f -exec shred -u '{}'<space>\;
This means search (recursive) in directory $TRASH/$1 for files (-type f) and execute for each file which was found command
shred -u '{}' where macro {} will be replaced with the file name
You can use -type d to search for directories
Check out find(1) (man 1 find)