Alex Robbins <alexdotrobb...@gmail.com> 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 debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/d416e2dc-c3f4-4361-a324-b5276366f...@email.android.com

Reply via email to