![]() Consult Emacs documentation for more information. Some Emacs editors allow you to directly edit a directory, and this provides yet another way to remove a file with a troublesome name.If you're using a graphical FTP client, remove these files as you would any other file. Use this approach cautiously to avoid deleting other files by mistake. Once you've deleted the intended file, you may press Ctrl-c to discontinue the mdel process. ![]() Delete that file by typing y (for yes) when prompted. Be sure to answer n (for no) for each file except the file containing the difficult character that you wish to delete. Bash interprets the quotes as part of the filename and gives 'No such file or directory' for each file (and still splits the filenames with blanks) for i in (backslash causes the character that follows to be interpreted literally. If this doesn't work, insert a backslash ( \ ) before the meta-character in your filename.If this command successfully renames the file, you can then use the rm command to delete the file using the new name. You can also try renaming the problem file, using quotes around your original filename, by entering:. ![]() (Since you can string commands together in Unix with semicolons, Unix will interpret a semicolon in a filename that way, unless you put it in quotes.) The quotes prevent the semicolon from being interpreted as a stacking command. ![]() You can also remove some other characters in this manner, for example: rm "filename #" This may solve the problem of deleting files with spaces in their name, for example:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |