[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
4.1.7 find directories & exec oddness
From: |
Illtud Daniel |
Subject: |
4.1.7 find directories & exec oddness |
Date: |
Wed, 12 Jan 2005 18:13:45 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.4.1) Gecko/20031008 |
Hi,
I'm having difficulty with directories and find.
Originally I was doing:
% find . -name 'Trash' -exec 'rm -rf {}' \;
and I was getting:
find: rm -rf ./reel216/Trash: No such file or directory
although the directory existed.
Googling about, I realised that I needed 'depth', or that possibly
'rm -r' was complaining.... but I've tried all the options and
simplified my problem to this point:
% find . -name Wills -exec "ls -l {}" \;
find: ls -l ./reel204/Wills: No such file or directory
find: ls -l ./reel200/Wills: No such file or directory
find: ls -l ./reel205/Wills: No such file or directory
find: ls -l ./reel183/Wills: No such file or directory
find: ls -l ./reel156/Wills: No such file or directory
find: ls -l ./reel407/Wills: No such file or directory
This is on two different machines (so I don't think it's an
filesystem corruption), running RHEL 3.0 with find 4.1.7.
Can anybody else reproduce this:
$ mkdir reel1
$ mkdir reel1/Wills
$ mkdir reel2
$ mkdir reel2/Wills
$ find . -name Wills -exec "ls -l {}" \;
find: ls -l ./reel1/Wills: No such file or directory
find: ls -l ./reel2/Wills: No such file or directory
Was this a bug that's been fixed, or am I using find incorrectly?
Thanks!
--
Illtud Daniel address@hidden
Uwch Ddadansoddwr Systemau Senior Systems Analyst
Llyfrgell Genedlaethol Cymru National Library of Wales
Yn siarad drosof fy hun, nid LlGC - Speaking personally, not for NLW
- 4.1.7 find directories & exec oddness,
Illtud Daniel <=