Skip to content

Instantly share code, notes, and snippets.

View dan-petty's full-sized avatar

Daniel Petty dan-petty

View GitHub Profile
@dan-petty
dan-petty / ldif-to-csv.sh
Created September 28, 2015 18:40 — forked from dansimau/ldif-to-csv.sh
Shell script that reads LDIF data from STDIN and outputs as CSV.
#!/bin/bash
#
# Converts LDIF data to CSV.
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them.
#
# 2010-03-07
# dsimmons@squiz.co.uk
#
# Show usage if we don't have the right params