[Malvern] Stoopid me.

Chris Eilbeck chris at yordas.demon.co.uk
Mon Oct 18 18:26:09 BST 2004


On Mon, Oct 18, 2004 at 05:55:20PM +0100, Geoff Bagley wrote:
> 
> Hi all.
> 
> I have stupidly filed an e-mail attachment in my home file as (guess what)  
> "*.*"
> 
> This means of course, that if I were to delete it, I would delete the whole 
> file contents !
> 
> What I want is a regular expression that will select *.*  literally, and 
> delete it WITHOUT wrecking the whole file.
> 
> The only other alternative is to move everything  (except *.* ) into 
> /home/temp ,  and then  delete *.*
> 
> Any bright ideas ?  I favour a R.E. if possible.

Easy.  Assuming you're using bash, type

  ls -l \*\.\*

and see what that says.  It should show you the details of your file. 
You can rename it using 

  mv \*\.\* non-stupid-filename.txt

or whatever.

> See you Wednesday,

Indeed!

Chris
-- 
Chris Eilbeck                         mailto:chris at yordas.demon.co.uk
MARS Flight Crew                              http://www.mars.org.uk/
UKRA #1108 Level 2                                                UYB
TRA #9527                                                        PSMR



More information about the Malvern mailing list