{"id":402,"date":"2010-12-14T19:49:28","date_gmt":"2010-12-14T18:49:28","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=402"},"modified":"2010-12-14T19:52:59","modified_gmt":"2010-12-14T18:52:59","slug":"how-do-i-remove-files-that-start-with-a-dash","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=402","title":{"rendered":"How do I remove files that start with a dash?"},"content":{"rendered":"<blockquote><p>Since the file name begins with a '-' it looks like an option to the command. You need to force it to not look like an option. Put a .\/ in front of it. Or give it the full file name path. Or tell the command you are through with options by using the double dash to end all option processing. This is common to most traditional Unix commands.<\/p>\n<p>     rm .\/-stuff<br \/>\n     rm \/full\/path\/-stuff<br \/>\n     rm -- -stuff<\/p>\n<p>And the same for other utilities too.<\/p>\n<p>     mv .\/-stuff differentstuff<br \/>\n     mv -- -stuff differentstuff\n<\/p><\/blockquote>\n<p><a href=\"http:\/\/http:\/\/www.gnu.org\/software\/coreutils\/faq\/coreutils-faq.html#How-do-I-remove-files-that-start-with-a-dash_003f\">http:\/\/www.gnu.org\/software\/coreutils\/faq\/coreutils-faq.html#How-do-I-remove-files-that-start-with-a-dash_003f<\/a><\/p>\n<p>Erschien mir n\u00fctzlich<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the file name begins with a '-' it looks like an option to the command. You need to force it to not look like an option. Put a .\/ in front of it. Or give it the full file name path. Or tell the command you are through with options by using the double [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18],"class_list":["post-402","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-linux"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=402"}],"version-history":[{"count":3,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/402\/revisions"}],"predecessor-version":[{"id":405,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/402\/revisions\/405"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=402"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=402"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}