PDA

View Full Version : emacs and terminal help



pramitkumarpal
March 12th, 2013, 04:27 PM
i have created hw.java file using vi.
opened it using emacs in text mode in terminal.edited something and quit it using C-x-C-c(without saving).
emacs asked me that it has some modified buffers ..so ignored that and quit emacs .
now i have file #hw.java# in the same directory.
how to delete this file using rm command as i am unable to delete the file from terminal using rm -f #hw.java#(did not help).


Help

r-senior
March 12th, 2013, 06:08 PM
Just put quotes around it (single or double does not matter in this case) so that the '#' character is not interpreted by the shell:


rm '#hw.java#'

pramitkumarpal
March 13th, 2013, 05:24 PM
later i experimented and found out a new command that worked
the code rm ./#hw.java#