This is a pipe: |
DSGET GROUP "CN=East Coast Sales, OU=East ,DC=bcdtrain, DC=com" -MEMBERS | DSMOD GROUP "CN=BCDTrain Sales, OU=Sales, DC=bcdtrain, DC=com" -ADDMBR
The first line gets the members of a group, then pipes it in to the next line, which modifies each member from the line above!
Here's one I created:
ping 64.233.187.99 | arp -A
stop
The first part ping's Google's IP, then the second part (after the pipe) takes that output and uses it as input on the arp command! The secret is making it all on one line. Do it on two lines and the pipe won't work.