👤
Home Man
Search
Today's Posts
Register

BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Description of the option print0 in the command find (man page)

Tags
bash, find, solved

👤 Login to reply

 
Thread Tools Search this Thread
# 1  
Old 12-17-2017
Description of the option print0 in the command find (man page)

This is the description of the option -print0 fon the command find in the man page:
Quote:
-print0:
True; print the full file name on the standard output, followed by a null character (instead of the newline character that -print uses). This allows file names that contain newlines or other types of white space to be correctly interpreted by programs that process the find output. This option corresponds to the -0 option of xargs
What does the "True" in the first line of the description mean?

Last edited by puertas12; 12-17-2017 at 01:17 PM.. Reason: grammar
The Following User Says Thank You to puertas12 For This Useful Post:
dodona (12-18-2017)
# 2  
Old 12-17-2017
These kinds of options can be either true or false. False means 'skip this file' because it fails to meet the other options requirements like age, file type... true means it doesn't change any other true/false evaluation that might have occurred on the file and if it is the only option it will always print.
# 3  
Old 12-18-2017
'False' would skip a following condition (that follows immediately or after a -a).
Example:
Code:
... -print0 -exec echo hello {} \;

The 'hello' is always done.
# 4  
Old 12-18-2017
Quote:
Originally Posted by puertas12
This is the description of the option -print0 fon the command find in the man page:


What does the "True" in the first line of the description mean?
guess it simply means that the option is set.
👤 Login to reply

« Previous Thread | Next Thread »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Unix man command to find out month of the year? janetroop95 UNIX for Dummies Questions & Answers 2 08-30-2012 12:28 PM
help with find command and prune option xiamin Shell Programming and Scripting 3 10-18-2009 01:48 AM
man page question fugitive Solaris 2 05-14-2009 10:22 PM
Creating a Man page for a command raghu.amilineni Solaris 2 12-21-2008 04:02 PM
Unable to get help from man page ezsurf Solaris 8 12-11-2007 12:03 PM
man page issue praveenkumar_l UNIX for Advanced & Expert Users 4 06-08-2007 02:20 AM
scp-1.2.27 man page Tornado Red Hat 4 03-16-2007 08:09 AM
adding a man page jacob358 UNIX for Dummies Questions & Answers 1 08-08-2005 04:14 PM
how do you create a man page? theDirtiest UNIX for Dummies Questions & Answers 3 09-13-2002 02:37 PM


All times are GMT -4. The time now is 09:15 PM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?