Alex Robbins <[email protected]> wrote: >I have a directory that looks like this: >. >├── dir >└── file >"dir" is a directory and "file" is a regular file. I execute: >find -type d >and get the output: >. >./dir >This is the expected output. However, when I execute: >find -print0 -type d >I see (on a terminal screen that does not display null characters): >../dir./file > >The same goes for using "-type f". It appears as though find ignores >the -type argument when the -print0 option is passed. Isn't this a >bug? >
The -print or -print0 option needs to follow the selection criteria, such as -type. I'm pretty sure this is documented somewhere in the findutils manual. -- regards, kushal -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected] Archive: http://lists.debian.org/[email protected]

