[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] shell question
- Subject: [ale] shell question
- From: kilpatms at gmail.com (Sean Kilpatrick)
- Date: Tue, 06 Oct 2015 16:09:03 -0400
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