blob: 8d05fa52c28acf8256767b1e1e684c27872fcc8c (
plain) (
blame)
1
2
3
4
5
6
7
8
|
#!/bin/bash
while read p; do
USER=`echo $p | sed 's/\s.*$//'`
ID=`echo $p | sed 's/.* //'`
echo $USER $ID
sed 's/$UID/'$USER'/g' replacements.txt | sed 's/$LDAPID/'$ID'/g' - >> replacements.sql
done <ldap_users.txt
|