Only showing three letter extensions with dir

Tech-Archive recommends: Fix windows errors by optimizing your registry



My editor (emacs) likes to make backups by placing a tilde (~) on the
end of the filename. If I then do a directory of that particular
filetype by means of:

dir *.typ

then I get a list like
file1.typ
file1.typ~
file2.typ
file2.typ~
....

Is there a way (especially using dir only (without piping)) to get only
the *.typ without the ~ at the end?

Thanks,
Csaba Gabor from New York

.



Relevant Pages

  • Re: Tilde expansion on (Windows)files?
    ... working on a storage optimization system I realized, ... What does this mean, which filename is searched? ... If it works on Windows, why doesn't it find the file? ... E.g. the tilde expansion only makes sense in a user specific environment ...
    (comp.lang.tcl)
  • IFS tilde in filename
    ... The filename is generated by the application ... only thing we need to do is remove the tilde character ... When I try to rename the file with legacy commands, the ... The one option we have is to manually go to the IFS filder via the ...
    (comp.sys.ibm.as400.misc)
  • Re: Tilde expansion on (Windows)files?
    ... Tcl 8.5.4, Windows XP - test: ... What does this mean, which filename is searched? ... If it works on Windows, why doesn't it find the file? ... 'file normalize' interaction with tilde ...
    (comp.lang.tcl)
  • Re: Tilde expansion on (Windows)files?
    ... working on a storage optimization system I realized, ... that a tilde in a filename makes problems: ... If it works on Windows, why doesn't it find the file? ...
    (comp.lang.tcl)
  • Re: Lilo not finding the right kernel...
    ... I just try to keep my / as trim as possible....usually placing things in ... /opt, or under another reasonable directory; backups, etc. go under /var ...
    (alt.os.linux)