[oclug] find

Bob Lockie bjlockie at lockie.ca
Thu Apr 22 18:10:18 EDT 2004


On 04/22/04 17:05 Francis J. A. Pinteric spoke:
> On Wed, 21 Apr 2004 21:43:30 -0400
> Bob Lockie <bjlockie at lockie.ca> wrote:
> 
> 
>>I want to "echo > *" to each file in a directory.
>>
>>I tried:
>>find . -name \* -exec "echo > {}" \;
>>but that gives me a:
>>find: echo > ./each_file: No such file or directory
>>
> 
> 
> Just a question. Why do you want to do this? I read this as your desire
> to release the storage of all the files in a directory without removing
> the names.
> 
> Do you have something against "rm *"?

I need the file names but not the content.



More information about the OCLUG mailing list