On Sat, 2011-06-25 at 09:39 +0000, debian-user-digest-requ...@lists.debian.org wrote: > On 25/06/11 17:15, Andrew McGlashan wrote: > > Hi, > > > > Ralf Mardorf wrote: > >> $ echo test > \* > >> $ ls > >> * Desktop Downloads hdsp.1 > >> > >> Any idea how I can get rid of the file named *? > > > > # touch \* \& > > # ls > > * & > > # find . -type f -name "\*" -print0|xargs -0 rm > > # ls > > > > > > # touch \* \& > > # find . -type f -name "\&" -print0|xargs -0 rm > > # ls > > * > > > > > > # touch \* \& > > # ls > > * & > > # find . -type f -name "\&" -print0|xargs -0 rm;ls > * > > # find . -type f -name "\*" -print0|xargs -0 rm;ls > > > > > > Cheers > > > > Bigger hammer.... > > scott@work:~/spec$ touch "*" "&" > scott@work:~/spec$ ls -A > * & > scott@work:~/spec$ rm `ls -A` > rm: cannot remove `&': No such file or directory > scott@work:~/spec$ ls -a > . .. > > > Cheers > > >
-- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/1308995076.17986.73.camel@debian