मैं इससेडबल हाइफ़न से शुरू होने वाली फ़ाइलों को कैसे निकालें?
--
उदा शुरू मेरी यूनिक्स मशीन पर कुछ फ़ाइलें --testings.html
अगर मैं मैं निम्नलिखित त्रुटि मिलती है इसे हटाने के लिए प्रयास करें:
cb0$ rm --testings.html
rm: illegal option -- -
usage: rm [-f | -i] [-dPRrvW] file ...
unlink file
मैं
rm "--testings.html" || rm '--testings.html'
कोशिश की, लेकिन कुछ भी नहीं काम करता है।
मैं टर्मिनल पर ऐसी फ़ाइलों को कैसे हटा सकता हूं?
[serverfault] पर समान (https://serverfault.com/questions/47003/deleting-a-unix-directory-with-a-hyphen-in-the-name) और [यूनिक्स] (https: // unix.stackexchange.com/questions/1519/how-do-i-delete-a-file-whose-name-begins-with-hyphen-aka-dash-or-minus)। – Dorian
@ डोरियन ठीक है, लेकिन मैं पहले था :) – cb0