Summary: filename missing (fwd)

From: Chua Koon Teck <koonteck_at_singnet.com.sg>
Date: Sun, 6 Aug 1995 23:18:34 +0800 (SST)

Hi

This list is simply terrific. Within minutes of posting my problem, I
have received many useful replies and solved the problem.

I have attached one of the reply which will explain and solve the
problem.


Thank you.

Have a nice day.

Regards

____________________________________________________________________________
Chua Koon Teck
Singapore Telecom
Comcentre
SingNet
email=koonteck_at_singnet.com.sg
URL="http://www.singnet.com.sg/"
____________________________________________________________________________

---------- Forwarded message ----------
Date: Sun, 6 Aug 1995 10:45:48 -0400 (EDT)
From: Alex Garthwaite <alex_at_samwise.cis.upenn.edu>
To: koonteck_at_singnet.com.sg
Subject: Re: filename missing


Chua Koon Teck wrote:
>
> Hi
>
> My system is experiencing some directory listing which looks like the
> following :
>
> -rw------- 1 wsped adusub 1025 Jan 13 1995
> drwxr-xr-x 7 wsped adusub 8192 Aug 6 19:05 .
> drwxr-xr-x9663 root system 253952 Aug 6 01:22 ..
> -rw------- 1 wsped adusub 2442 Apr 28 13:06 .addressbook
> -rwxr-xr-x 1 wsped adusub 1499 Feb 22 1994 .cshrc
>
> Notice that the first entry is a file with no name. Can someone teach me
> how to remove such file ? What is the cause of such a file ?

Most likely, the filename consists of control characters.
Try doing "ls -l | cat -vet". This will display the control characters
as two character sequences (i.e., ascii 1 will be displayed as ^A).
Note that the newline at the end of each line will be displayed as
a '$'. Once you know what the filename is, you can use quoting if
necessary to build the argument to rm.

When doing the rm command, I would try using some wildcarding to
make the specification easier and to include the '-i' option
so that you have the option of not removing file(s).

Files like this are usually caused by a program that opens a
file whose filename consists (partially) of control characters.
A common cause is a program that prompts for a filename and the user
does things like press the cursor keys.

Good luck.

-- 
Alex Garthwaite                                  Internet: alex_at_cis.upenn.edu
Systems Programmer                           Computer and Information Science
University of Pennsylvania                                     (215) 898-5617
Received on Sun Aug 06 1995 - 17:31:08 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:45 NZDT