[ale] shell question

Ed Cashin ecashin at noserose.net
Tue Oct 6 16:16:35 EDT 2015


If you're doing this in an interactive bash session, you can probably use
tab completion after starting with "./!".

On Tue, Oct 6, 2015 at 4:09 PM, Sean Kilpatrick <kilpatms at gmail.com> wrote:

> I am trying to clean up an SD card.  "ls-ahl" gives me this:
>
> -rw-r--r--. 1 kilpatms users 224K Sep 13 15:04 !µ"µ#µ$µ.%µ&
> drwx------. 9 kilpatms users  16K Oct  6 15:38 .
> drwxr-x---+ 3 root     root    60 Oct  6 15:33 ..
> -rw-r--r--. 1 kilpatms users 832K Sep 13 15:04 ?µ?µ?µ?µ.?µ?
> drwx------. 5 kilpatms users 192K Aug 27  2011 DCIM
> drwx------. 2 kilpatms users  32K Oct  6 15:35 FOUND.000
> drwx------. 2 kilpatms users  32K Sep 13 17:08 .fseventsd
> -rw-r--r--. 1 kilpatms users  32K Jul  4  2012 MISC
> drwx------. 2 kilpatms users  32K Oct  6 15:34 NCFL
> -rw-r--r--. 1 kilpatms users  512 Oct  6 15:33 NIKON001.DSC
> drwx------. 2 kilpatms users  32K Sep 13 15:15 System Volume Information
> drwx------. 4 kilpatms users  32K Oct  6 15:35 .Trash-1000
> drwx------. 2 kilpatms users 256K Nov  1  2014 .Trashes
> -rw-r--r--. 1 kilpatms users    0 Jan  1  1980 USBCô?
>
>
> I would like to delete the file beginning with ! and the one beginning
> with  ?.
>
>
> But when I try "rm !*.*" I get this:
>    rm -ahl.*
>    rm: invalid option -- 'a'
>    Try 'rm --help' for more information.
>
> which leads me to try rm ./!*, which doesn't work;
> neither does rm -- !*
>
>
>
> And when I try "rm ?*.*"  I get this:
>    rm: cannot remove ‘FOUND.000’: Is a directory
>
> Clues would be appreciated.
>
> Sean
>
>
>
>
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>



-- 
  Ed Cashin <ecashin at noserose.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151006/8ec4412d/attachment.html>


More information about the Ale mailing list