|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Deleting a directory with symbols and commands in its name
Hi, i have a php script on a FreeBSD that had a little error and ended up creating a folder called:
PHP Code:
Now i'm trying to figure out how i would delete this directory as the normal methods i'm familiar with don't seem to work on a dir with a name like this. Thanks in advance |
|
#2
|
||||
|
||||
|
"Escaping" the symbols with a backslash, e.g. \$ prevents the shell from treating the $ sign as a prefix to an env variable and usually works.
Regards. |
|
#3
|
|||
|
|||
|
yep, that did the trick
i used :
rm -R \<\?php\ \echo\ \$photo\_path\;\?\> and it did the trick. Thanks again. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Deleting a directory with symbols and commands in its name |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|