Hi
Have a file called ldap.list:
******
"o=unix forum"
o=groups
******
i wrote a basic script that runs:
for i in `cat ldap.list`
do
ldapsearch -h host -p 389 -b $i
THE PROBLEM: - It looks like when the for i in cat ldap.list runs, it doesn't seem to care about the " ", it treats the space as a new line return, so if you just try to run a 'for i in ldap.list, grep $i' - you get
o=unix
forms
rather than - "o=unix forums"
I need to keep the " " in tact.
Thanks in advance for the help!
-littlefrog