Help for this page
Select Code to Download
Select
or
download this
perl -e 'BEGIN { $/="\n\n" }' -ne 'print if /^objectClass: dxmADsUser/si' file1 > file2
Select
or
download this
perl -i.bak -pe 's/dc=domain1,dc=tld$/dc=domain2,dc=tld/' file