How to remove a directory using a script?SOLOVED

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

How to remove a directory using a script?SOLOVED

#1 Post by oldyeller »

Hi Everyone,

I have a directory I want to remove when all of its contents have been installed.

Can this be done? i have tried but it says cannot remove it is a directory.

any help would be very great

Cheers
Last edited by oldyeller on Sat 26 Jan 2013, 16:01, edited 1 time in total.

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#2 Post by 01micko »

rm -r /path/to/directory
Puppy Linux Blog - contact me for access

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#3 Post by jpeps »

01micko wrote:rm -r /path/to/directory
..but not rm -r /*

User avatar
oldyeller
Posts: 889
Joined: Tue 15 Nov 2011, 14:26
Location: Alaska

#4 Post by oldyeller »

01micko wrote:rm -r /path/to/directory
Thanks Mick that worked!!!

Cheers

Post Reply