I have two files, each of them has 12 lines, fileA has 3 columns, fileB has 1 column, like the following
FileA
a 1
b 2
c 3
..blabla
FileB
A
B
C
..blabla
Now I am trying to put the content of fileB as column 3 of fileA, e.g.
a 1 A
b 2 B
c 3 C (3 Replies)
Hi gurus out there,
1)I am using ksh, in solaris 10.
2)I have one ldif file, I need to output user DN with attributes=<some pattern> to a file.
Example:
dn: uid=joy,ou=People,o=abc.com,o=isp
nswmExtendedUserPrefs: meAutoSign=true
nswmExtendedUserPrefs: meSignature=Regards, Joy... (3 Replies)
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
Given are File A and File B
File A has for example 5 lines:
AAA
BBB
CCC
DDD
EEE
File B has 3 lines:
111
222
333
How can i merge A and B into:
111
222
333
AAA (first line from A)
then a new file: (4 Replies)
Hello,
I have a application software plink. It can merge files with some kinds of way.
The command likes:
plink --file 1 --merge 2 --recode --out merged
That means merge file 1 and 2 then output file "merged".
However I have 23 files (1,2,3,...22,23)to be merged together. How can I use... (2 Replies)
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Dear Gents,
Please I need your help... I need small script :) to do the following.
I have a thousand of files in a folder produced daily.
I need first to merge all files called. txt (0009.txt, 0010.txt, 0011.txt) and and to output a resume of all information on 2 separate files in csv... (14 Replies)
Team ,
I am new to perl. Can someone help me out to convert LDIF file to csv format using perl logic ?
LDIF file format contains values :
ID : name/Bose-IND/ORD,cu-150,ou=ends
Connection_Time: 02:12:54 EST
LDAP: yes
Link: ABC Home Page - ABC.com
Expected outcome should with column... (0 Replies)
Discussion started by: Perlbaby
0 Replies
LEARN ABOUT OPENDARWIN
slapadd
SLAPADD(8C)SLAPADD(8C)NAME
slapadd - Add entries to a SLAPD database
SYNOPSIS
/usr/sbin/slapadd [-v] [-c] [-u] [-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, does not perform all user and system schema checks, and does not maintain operational attributes (such as createTimeStamp
and modifiersName).
OPTIONS -v enable verbose mode.
-c enable continue (ignore errors) mode.
-u enable dry-run (don't write to backend) 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.1.X RELEASEDATE SLAPADD(8C)