I have a directory with a bunch of stuff in it. when you say rm -r "the directory"
you have to say yes,yes,yes,......20 times. Is there a script for just having the
answer to all "are you sure you want to delete ...?" be yes? any scripting help, im new.
coding101 0
Junior Poster in Training
Recommended Answers
Jump to PostThe behaviour you describe means that a -I option is silently passed to rm. Usually it is done by aliasing rm to rm -I somewhere in the startup scripts; some people think it is a good idea. The simplest way is to directly invoke /bin/rm instead. If you are writing …
All 3 Replies
nezachem 616
Practically a Posting Shark
thekashyap 193
Practically a Posting Shark
masijade 1,351
Industrious Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.