07-09-2007
Add the "-level 0" option to the command
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How can I know that my FreeBSD OS has commands mkdir or mkfile?
Can I do like this:
find / -name mkdir
find / -name mkfile
But I do not see them???
Thanks. (1 Reply)
Discussion started by: lacasa
1 Replies
2. Shell Programming and Scripting
given a start directory,a filename,how to find it? (3 Replies)
Discussion started by: bluo
3 Replies
3. Shell Programming and Scripting
Yes , I have to find a file in unix without using any find or where commands.Any pointers for the same would be very helpful as i am beginner in shell scritping and need a solution for the same.
Thanks in advance.
Regards
Jatin Jain (10 Replies)
Discussion started by: jatin.jain
10 Replies
4. UNIX for Dummies Questions & Answers
I need help with tweaking the unix find command. currently the find command searches all the directories under $div/users modified in the last 1 day.
find $div/users -type d -mtime +1
I need this changed to find only subdirectories and sub-subdirectories modified in the last 1 day under... (1 Reply)
Discussion started by: mnnarendra
1 Replies
5. Shell Programming and Scripting
I need help with tweaking the unix find command. currently the find command searches all the directories under $div/users modified in the last 1 day.
find $div/users -type d -mtime +1
I need this changed to find only subdirectories and sub-subdirectories modified in the last 1 day under... (3 Replies)
Discussion started by: mnnarendra
3 Replies
6. Shell Programming and Scripting
hello forum memvers,
1:I have to write a script for find a string and replace with another string.
2:In shell script how to replace one string with another string.:b: (4 Replies)
Discussion started by: rajkumar_g
4 Replies
7. UNIX for Dummies Questions & Answers
This command is intended to compare two drives to see if all files are identical, can some one please decode what it is doing.
find / -path /proc -prune -o -path /new-disk -prune -o -xtype f -exec cmp {} /new-disk{} \; (2 Replies)
Discussion started by: Tirmazi
2 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I've been stuck on this problem for 2 days now
What command would you enter to list the first lines of all text... (11 Replies)
Discussion started by: partieboi37
11 Replies
LEARN ABOUT REDHAT
slapadd
SLAPADD(8C) SLAPADD(8C)
NAME
slapadd - Add entries to a SLAPD database
SYNOPSIS
/usr/sbin/slapadd [-v] [-c] [-d level] [-b suffix] [-n dbnum] [-f slapd.conf] [-l ldif-file]
DESCRIPTION
Slapadd is used to add entries specified in LDAP Directory Interchange Format (LDIF) to a slapd(8) database. It opens the given database
determined by the database number or suffix and adds entries corresponding to the provided LDIF to the database. The LDIF input is read
from standard input or the specified file.
As slapadd is designed to accept LDIF in database order, as produced by slapcat(8), it does not verify that superior entries exist before
adding an entry.
OPTIONS
-v enable verbose mode.
-c enable continue (ignore errors) mode.
-d level
enable debugging messages as defined by the specified level.
-b suffix
Use the specified suffix to determine which database to add entries to. The -b cannot be used in conjunction with the -n option.
-n dbnum
Add entries to the dbnum-th database listed in the configuration file. The -n cannot be used in conjunction with the -b option.
-f slapd.conf
specify an alternative slapd.conf(5) file.
-l ldif-file
Read LDIF from the specified file instead of standard input.
LIMITATIONS
Your slapd(8) should not be running when you do this to ensure consistency of the database.
slapadd may not provide naming or schema checks. It is advisable to use ldapadd(1) when adding new entries into an existing directory.
EXAMPLES
To import a entries specified in file ldif into your slapd(8) database give the command:
/usr/sbin/slapadd -l ldif
SEE ALSO
ldap(3), ldif(5), slapcat(8), ldapadd(1), slapd(8)
"OpenLDAP Administrator's Guide" (http://www.OpenLDAP.org/doc/admin/)
ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan
LDAP 3.3 Release.
OpenLDAP 2.0.27-Release 2 October 2001 SLAPADD(8C)