You can rm it by using the -- option. rm -- -testfile.txt
ls also has a -- option. See the man pages for ls and rm for this. Good idea is not to name a file beginning with a dash. Ron Oscar wrote: > > Hi all, > I have seen a problem (?) when working with files starting with the "-" > character, for example: > > -testfile.txt > > Commands like grep, rm... does not work properly. > (LM 8.1 with XFS filesystem) > Any comment? > Salu2 > óscar. > > -- > . --- > |o_o | > |:_/ | Usuario > // \ \ de Linux > (| | ) Registrado > /'\_ _/`\ #227443 > \___)=(___/ http://counter.li.org/ > > ------------------------------------------------------------ > Want to buy your Pack or Services from MandrakeSoft? > Go to http://www.mandrakestore.com -- Ron Marriage Homepage http://www.seidata.com/~marriage/ Email mailto:[EMAIL PROTECTED] Linux User Group http://www.seidata.com/~seilug/ Blind Links http://www.seidata.com/~marriage/rblind.html
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com