Created
February 27, 2022 12:22
-
-
Save AlexRogalskiy/d0d8f8b1a018471d5fe3a2734e99e2c6 to your computer and use it in GitHub Desktop.
concatenate long ldapsearch lines back together
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ldapsearch ... | awk '/^ /{x=$0;gsub(" ","",x);print x};!/^ /{if(length($0)==78){printf$0}else{print}}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment