home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.admin
- Path: sparky!uunet!gumby!yale!mintaka.lcs.mit.edu!spdcc!msimpson
- From: msimpson@spdcc.com (Michael L. R. Simpson)
- Subject: Re: Can't delete file name " | more " ?
- Message-ID: <1993Jan28.030651.19658@spdcc.com>
- Summary: Use "ls -i", followed by "find"
- Keywords: rm, file, delete
- Organization: Custom Training Institute, Los Angeles CA
- References: <1jh76kINN2fn@apache.genrad.com> <1993Jan21.230331.16284@ghost.dsi.unimi.it> <2059@frackit.UUCP>
- Date: Thu, 28 Jan 1993 03:06:51 GMT
- Lines: 24
-
- > > >In article <1jh76kINN2fn@apache.genrad.com> jbm@apache.genrad.com (John A. Meneghini) writes:
- > > >>Below is a listing of the files in my directory:
- > > >>-rw-r--r-- 1 jbm 790 Jan 14 10:58 | more
- > > >>-rw-r--r-- 1 jbm 402 Jan 14 11:00 | more
- > >
-
- Two-step process:
-
- 1) Use "ls -i" to determine the inode numbers of the offending files
- Let's suppose the inode numbers are 125 and 250.
-
- 2) Issue the following find command:
-
- find . \( -inum 125 -o -inum 250 \) -exec rm -f {} \;
-
- You can substitute "-ok" for "-exec", if you want to explicitly confirm
- each deletion.
-
- Mike Simpson
- Custom Training Institute
- Los Angeles, CA
- 213 969 8400
- --
-
-