![]() |
|
|||||||
| OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|||
|
This is not an openbsd question per se. But I am unable to delete the following directory > "Pink_Floyd-Wish_You_Were_Here_(Japan,_TOCP-65560)"
I alwas get the following error > "syntax error: `(' unexpected" I know this must be a complete newb problem but I swear I'm not a complete newb. If the answer requires further study of a man page or understanding of syntax please point me in the right direction. Thanks, divadgnol67 |
|
|||
|
Obvoiusly quotes are not part of directory name. I am able to access files inside of directory via mp3blaster
|
|
||||
|
You cannot delete this because the file name includes shell special characters, such as "(" and ")".
You should be able to delete by tab completion, if the shell you are using has the feature (and the default ksh should have it), or escape them manually with a backslash "\" character, or by surrounding the filename with quote characters ("). Have you tried just using tab completion? e.g.: $ rm -rf Pink {press your tab key after typing the first part of the directory name}Some special names, such as those that begin with a special character like "+" can also be deleted by leading the filename with the directory. For example, to delete a file called +CONTENTS in the current directory, you can do so by issuing: $ rm ./+CONTENTSSo in this case, you might try: $ rm -rf ./Pink {tab completion}
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
If there is no other directory that starts with "Pink", just rm -rf Pink*
|
|
|||
|
That worked....Thank you both very much. What documentation can I study up on to get a better understanding of special shell characters. Is there a man page for me to read. Thanks again, really.
|
|
|||
|
One day I hope to able to contribute back and help someone like myself. You both have helped me several times in the past to gaining a better understanding of unix and openbsd.
|
|
||||
|
The man page for the shell you are using is a great place to start. e.g.: for ksh, use the "man ksh" command, then use the search feature ("/<keyword>") to find what you're looking for.
In this case, try /Command syntax
__________________
OpenBSD LiveCDs/LiveDVDs |
|
|||
|
Will do, thanks.
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Archiving a log file to a directory with the date incorporated in the new name | J65nko | Programming | 1 | 6th February 2010 02:02 AM |
| PHP read file contents - Maximum file size | cksraj | Programming | 1 | 21st September 2009 11:38 AM |
| strange "~" directory in home directory | gosha | OpenBSD General | 5 | 23rd February 2009 05:12 PM |
| Deleting lines with certain letters/keywords. | bigb89 | Programming | 4 | 12th November 2008 10:59 PM |
| Jails - mount: /usr/home: No such file or directory | chris | FreeBSD General | 6 | 6th August 2008 10:47 PM |