bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

find-manpage example


From: Jan
Subject: find-manpage example
Date: Fri, 1 Aug 2003 18:48:37 +0200
User-agent: KMail/1.5.3

Hello,

I have been using 'find' with '-exec' several times before. Now I had to use 
it again. But I didn't exactly remember how it worked, so I took a look into 
the manpage:

$ man find
...
   ACTIONS
       -exec command ;
              Execute command; true if 0 status is returned.  All
              [...]
              executed in the starting directory.

uff - what does it look like in practis? That had happend to me every time, I 
wanted to use find with -exec. I do not yet suffer from Alzheimer - or maybe?

:)

A tiny excample in addition to the man-page-text would be very nice. e.g.:
"
Finds every file in subdirectories of the current directory and calls 'file'  
on it:
find -type f -exec file {} \;

note the whitespace in front of the '\;'
"

Many thanks.

Best regards,
Jan Mentzel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]