<div dir="ltr">If you're doing this in an interactive bash session, you can probably use tab completion after starting with "./!".</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 6, 2015 at 4:09 PM, Sean Kilpatrick <span dir="ltr"><<a href="mailto:kilpatms@gmail.com" target="_blank">kilpatms@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to clean up an SD card. "ls-ahl" gives me this:<br>
<br>
-rw-r--r--. 1 kilpatms users 224K Sep 13 15:04 !µ"µ#µ$µ.%µ&<br>
drwx------. 9 kilpatms users 16K Oct 6 15:38 .<br>
drwxr-x---+ 3 root root 60 Oct 6 15:33 ..<br>
-rw-r--r--. 1 kilpatms users 832K Sep 13 15:04 ?µ?µ?µ?µ.?µ?<br>
drwx------. 5 kilpatms users 192K Aug 27 2011 DCIM<br>
drwx------. 2 kilpatms users 32K Oct 6 15:35 FOUND.000<br>
drwx------. 2 kilpatms users 32K Sep 13 17:08 .fseventsd<br>
-rw-r--r--. 1 kilpatms users 32K Jul 4 2012 MISC<br>
drwx------. 2 kilpatms users 32K Oct 6 15:34 NCFL<br>
-rw-r--r--. 1 kilpatms users 512 Oct 6 15:33 NIKON001.DSC<br>
drwx------. 2 kilpatms users 32K Sep 13 15:15 System Volume Information<br>
drwx------. 4 kilpatms users 32K Oct 6 15:35 .Trash-1000<br>
drwx------. 2 kilpatms users 256K Nov 1 2014 .Trashes<br>
-rw-r--r--. 1 kilpatms users 0 Jan 1 1980 USBCô?<br>
<br>
<br>
I would like to delete the file beginning with ! and the one beginning<br>
with ?.<br>
<br>
<br>
But when I try "rm !*.*" I get this:<br>
rm -ahl.*<br>
rm: invalid option -- 'a'<br>
Try 'rm --help' for more information.<br>
<br>
which leads me to try rm ./!*, which doesn't work;<br>
neither does rm -- !*<br>
<br>
<br>
<br>
And when I try "rm ?*.*" I get this:<br>
rm: cannot remove ‘FOUND.000’: Is a directory<br>
<br>
Clues would be appreciated.<br>
<br>
Sean<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"> Ed Cashin <<a href="mailto:ecashin@noserose.net" target="_blank">ecashin@noserose.net</a>></div></div>
</div>