Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do remove a directory like ${home.dir}

Status
Not open for further replies.

6151

Programmer
Dec 30, 2003
7
CA
Thanks
 
Hi:

1) rmdir $home.dir

removes an empty directory provided you have permissions to remove it.

2) rm -r $home.dir

recursively removes $home.dir and it's entire contents, again, provided you have permission.

Regards,


Ed
 
Thanks Ed

The directory is called ${home.dor}, which created by some script.

rm -rf ${home.dir}

ends up with :
ksh: ${home.dir}: 0403-011 The specified substitution is not valid for this command.

Thanks
 
Try something like this:
Code:
rm -rf '${home.dir}'

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top