Meaning of pattern in rm command
I found this rm
command in a Makefile.
rm -f $(ODIR)/*.o *~开发者_如何转开发 $(PROG) $(INCDIR)/*~
What is the meaning of *~
?
*~
is not special. It matches files that end with the ~
character (often editor backup files).
emacs is one program which leaves files ending with ~ around as backup files. So the creator of the makefile was probably an emacs user who wanted this target (perhaps clean?) to clean up .o files and executables and emacs droppings.
It means all files with a ~
at the end, no matter what the other letters of the filename are. These are usually temporary files.
精彩评论