Ugly file name

Ron Birnbaum rdb at osf.OSF.ORG
Wed May 17 05:25:39 AEST 1989


In article <1233 at oswego.Oswego.EDU> stjohn at oswego.oswego.edu.Oswego.EDU (Dave St. John) writes:
>In article <448 at hsi86.hsi.UUCP> derek at hsi86.UUCP (Derek Lee-Wo) writes:
>>
>>This doesn't work for filenames that start with a minus. eg -badfile
>>Anyone know how to erase such files with whipping up a short C program?
>
>RTM, it says to use a - for file names that begin with a -.
>So you would type
>    % rm - -badfile
 
     Or else you can remove another file with -badfile on the same line:

     rm another -badfile

     will remove the files 'another' and '-badfile'.


>US Mail:	Dave St. John				

-Ron Birnbaum   rdb at osf.org



More information about the Comp.unix.questions mailing list