Converts directory_information web script to a bash script.