help removing a file

Bob Peirce #305 rbp at investor.pgh.pa.us
Tue Sep 11 21:56:59 AEST 1990


In article <1990Sep5.180847.21767 at zaphod.mps.ohio-state.edu> harmon at function.mps.ohio-state.edu (Jim Harmon) writes:
>Could someone someone help me with removing a file. On our system we have a
>file that appears as zhang?evai.tex when doing a `ls` but a tab completion
>says it's zhangNevai.tex. I've tried putting a back slash in front of the ?
>and quoting the whole name. I even tried doing `rm -i *` and it matches
>zhangNevai.tex but says there's No such file or directory.

When confronted with this situation on my system I try

	mv *zh*tex* foo
	rm foo

The actual regex depends on the problem.  The point is that mv seems
to be able to work on files where rm won't, so you mv it to a name
rm can use.

-- 
Bob Peirce, Pittsburgh, PA				  412-471-5320
...!uunet!pitt!investor!rbp			rbp at investor.pgh.pa.us



More information about the Comp.unix.admin mailing list