Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function rm
- {
- #on vire les options
- count=0
- for a in "$@"
- do
- echo $a|grep '^-' >/dev/null
- if [ "$?" != "0" ]
- then
- ((count+=1))
- fi
- done
- if (( count > 1 ))
- then
- echo -n "/bin/rm: $@ ?"
- read reply
- if [ "$reply" == "y" ]
- then
- /bin/rm -i "$@"
- fi
- else
- /bin/rm -i "$@"
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement