[expert] files starting with -

2001-12-13 Thread Oscar
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 (|

Re: [expert] files starting with -

2001-12-13 Thread Oscar
El jue, 13-12-2001 a las 19:00, Oscar escribió: 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. (using wildcards like *) (LM 8.1 with XFS filesystem) Any comment?

Re: [expert] files starting with -

2001-12-13 Thread Ron Marriage
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,