I have a log directory with thousands of files that are named similar to this:
''$'\351\243\216\346\211\207\343\200\201\347\273\204\345\220\210'' strutstore A'$'\350\241\250''.xlsx'
I want to delete any file that has a single quote in its name. I can’t figure out how to match them. When I try:
ls: unrecognized option '----------------z-2020-02-12 ZTL-Y-.xlsx'
If you’re trying to pass filename arguments that begin with a hyphen, you should use a double hyphen to terminate your own command options, for example:
ls -- ''*
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.