views:

21

answers:

1

Hey folks,

I'm attempting to write a shell script that that will delete the content of the directory specified.

So for example, I want to be able to type: sh trash misc. Where trash is my shell script and misc is the folder I want to delete the contents of.

What would be the best way to go about this?

I'm thinking I need to use find . -delete in my script but I'm not sure.

Any help advice would be greatly appreciated.

A: 

Why not just rm $1\\* ?

stoj
Thanks stoj, perfect. Although rm $1//* is what worked for me.
Martyn