Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to Delete file using Shell Script

488135May 22 2007 — edited May 23 2007
Hi All,

I want to delete the file by passing as a parameter in the particular directory(/usr/bin) using shell script.
My requirement is suppose If I pass 'example.txt' as a parameter then it needs
to be searched in the above directory , if it exists then i need to delete that file(example.txt).
Can any one please suggest me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 20 2007
Added on May 22 2007
4 comments
910 views