Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: strange ls problem

RE: strange ls problem

From: Ferris, Shawn <Shawn.Ferris_at_twtelecom.com>
Date: Thu, 25 Jan 2001 13:22:50 -0700
Message-Id: <10752.127538@fatcity.com>


> [1] -rw-rw-r-- 1 llu dba 0 Jan 24 15:23

Try 'ls -i'. It's possible to have a filename of a bunch of spaces.

EG:
$ echo > ' '

> [2] read ohome
> [3] if [
> -rwxrwxr-- 1 jcsora dba 17696 Jan 22 09:04
> b_begin
> -rwxrwxr-- 1 llu dba 11629 Jan 19 10:03
> back_dbbackup

This I would attribute to a misbehaved script. (Probably missing a quote or something) It's easy to do. ls -i will give you then inode number for these files. You can remove them then with the following:

find . -inum INODE_NUMBER_FROM_LS -xdev -exec rm {} \;

HTH
Shawn M Ferris
Oracle DBA - Time Warner Telecom Received on Thu Jan 25 2001 - 14:22:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US