hi!
first i want to apologize for two things. my English and (possible) posting in the wrong sub forum (i couldn't find one that fits my question)
I am needing a script that can substitute rm.
the idea is that the operator can/must delete some folders and files from time to time, when the free space on some hard drive is running low, but some other files shouldn't be touched, and you know murphy
i can write a script to do that, but i was hoping someone already did
what i can think is a while loop that reads the blacklist file line by line, and if the %1 equals some line, then echo some msg and stop
but is more complex, i need logs, i have to match full path and, basename of the full path against, the first param. i need to be able to detect errors on the input, and avoid "rm -rf /" hells derived from coding errors
to be clear, i don't want you to make this script (if it has to be done, i will do it, and you will read me in the scripting section asking some specific problems), again, i was hoping some one already invented this wheel
About the interpreter/unix flavour it doesnt matter, if you know one that works on bash/ksh/zsh/csh/.* in SunOS/Linux/AIX/SCO/BSD/.* i will be more than grateful