an rm question

uucp rroot at edm.UUCP
Tue Apr 19 14:57:27 AEST 1988


>From article <10431 at steinmetz.ge.com>, by davidsen at steinmetz.ge.com (William E. Davidsen Jr):
> One of the nice things about Korn shell is the 8 bit capability. I can
....
] 	mkdir expendable
] 	cd expendable
] 	date > .x
] 	ls -la		# show .x 
] 	rm *		# delete 'everything'
] 	ls -la		# .x still there
] 	cd ..
] 	rm -r expendable # now the file goes away

The easy way to get rid of .x is to name it explicitly..
rm .x
rm .? will also work, but it will complain about .. being
a directory, but if the file were .xx , then rm .??* would
get it (or anything longer, for that matter)
 for getting rid of REALLY random names (like with the 8th bit
set) try:'
  rm -ir .
It will at least ask you if you really want to eat the file.
  (don't use "rm -[i]r .. or .?, since it may try to eat stuff
out of your parent directory...)
-- 
-------------
 Stephen Samuel 
  {ihnp4,ubc-vision,vax135}!alberta!edm!steve
  or userzxcv at uqv-mts.bitnet



More information about the Comp.unix.wizards mailing list