Created
April 2, 2022 05:51
-
-
Save WProbot/ba50147e8976caecb9b47e83b407d150 to your computer and use it in GitHub Desktop.
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
| #!/bin/bash | |
| # | |
| # woo-customer-email.sh | |
| # | |
| wp user list | gawk ' | |
| BEGIN { | |
| FS = OFS = "\t"; | |
| } | |
| $6 ~ /customer/ { | |
| print $4, $3; | |
| } | |
| ' | sort -u > woo-customer-email.txt | |
| #-# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment