03-14-2006
Total Newbie help getting sarted...
Basically i am not looking for you guys to write the script for me but help me understand how to write it and point me in the write direction.
I can see what i want to do, just having trouble putting it into shell.
I have a file Blah.txt with 400 DN's in it. I need to modify two attributes on each DN. I figured i can write a script to get the LDIF setup, save it and then excute it.
heres what i have come up with.
for DN in 'cat blah.txt'
Do append to
#LDIF File
#Save File
#Excute LDIF
Done
tar/gz file
Does that make any sense...
Thanks
--CD (the newbie)
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to find information to help me switch to UNIX os from Windows98. Is this where I should be? If so, can someone get me started? I have a Compaq Presario 5030 with a USR 56k modem and other peripherials. Sound card is integrated onto the motherboard (I think). So, I need drivers, etc. Any... (2 Replies)
Discussion started by: leohutt
2 Replies
2. UNIX for Dummies Questions & Answers
Hi everybody...
I'm trying to run some very simple cgi scripts on my server whilst I learn perl. Today is day 3 of that process, so I apologize in advance for not having enough knowledge to ask the right questions.
Any program I try to execute gives me an Internal Server Error (500) message.... (4 Replies)
Discussion started by: paqi the black
4 Replies
3. Shell Programming and Scripting
Hi everyone...
i'm starting to learn kshell scripting... my first task is to write a script that would execute some mysql statements to query some data, to transfer it into a file for record basis...
Anyone has any samples to share? or perhaps some tips here and there?
Thanks in advance...... (2 Replies)
Discussion started by: 12yearold
2 Replies
4. UNIX for Dummies Questions & Answers
Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Discussion started by: MrAd
5 Replies
5. UNIX for Dummies Questions & Answers
Hello everyone,
Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware.
I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies
6. Shell Programming and Scripting
Hello everyone,
I am having to do a lot of perl scripting these days and I am learning a lot.
I have this problem
I want to move files from a folder and all its sub folders to one parent folder, they are all .gz files..
there is folder1\folder2\*.gz
and there are about 50 folders... (1 Reply)
Discussion started by: xytiz
1 Replies
7. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
8. Shell Programming and Scripting
Input file
SFSQW 5192.56
HNRNPK 611.486
QEQW 1202.15
ASDR 568.627
QWET 6382.11
SFSQW 4386.3
HNRNPK 100
SFSQW 500
Desired output file
SFSQW 10078.86 3
QWET 6382.11 1
QEQW 1202.15 1
HNRNPK 711.49 2
ASDR 568.63 1
The way I tried: (2 Replies)
Discussion started by: patrick87
2 Replies
9. UNIX for Dummies Questions & Answers
Hey guys,
I'm really new to all this side of computing and have just had this box sort of left with me and it peaked my curiosity. So i would up here in a desperate bid to find out what the hell it is because although its sort of obvious what it is, no where online is able to give me a detailed... (5 Replies)
Discussion started by: anthony346
5 Replies
LEARN ABOUT HPUX
slapd-ldif
SLAPD-LDIF(5) File Formats Manual SLAPD-LDIF(5)
NAME
slapd-ldif - LDIF backend to slapd
SYNOPSIS
/etc/ldap/slapd.conf
DESCRIPTION
The LDIF backend to slapd(8) is a basic storage backend that stores entries in text files in LDIF format, and exploits the filesystem to
create the tree structure of the database. It is intended as a cheap, low performance easy to use backend, and it is exploited by higher-
level internal structures to provide a permanent storage.
CONFIGURATION
These slapd.conf options apply to the LDIF backend database. That is, they must follow a "database ldif" line and come before any subse-
quent "backend" or "database" lines. Other database options are described in the slapd.conf(5) manual page.
directory <dir>
Specify the directory where the database tree starts. The directory must exist and grant appropriate permissions (rwx) to the iden-
tity slapd is running with.
ACCESS CONTROL
The LDIF backend does not honor any of the access control semantics described in slapd.access(5). Only read (=r) access to the entry
pseudo-attribute and to the other attribute values of the entries returned by the search operation is honored, which is performed by the
frontend.
FILES
/etc/ldap/slapd.conf
default slapd configuration file
SEE ALSO
slapd.conf(5), slapd-config(5), slapd(8), ldif(5).
AUTHOR
Eric Stokes
OpenLDAP 2012/04/23 SLAPD-LDIF(5)