Linux equivalent to QNX's ws (walk directory structure) command?

Peter plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Wed Jan 4 23:54:41 UTC 2006



On Wed, 4 Jan 2006, bob wrote:

> QNX had a command which would walk down a directory structure executing a
> command at each level.     They called it "ws".
>
> Is there an equivalent in Linux?
>
> I did a quick look through my reference material and couldn't find it,  so I
> thought I would ask before I set out to write my own.

find /start/here -type d -exec yourcommand youroptions {} \;

{} is replaced with each found directory

Peter
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list