fixed bug, clarified code
authorAndrew Engelbrecht <andrew@fsf.org>
Thu, 18 May 2023 21:49:48 +0000 (17:49 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Thu, 18 May 2023 21:49:48 +0000 (17:49 -0400)
deleted-members.sh

index 24fd0029673ff2ac4deb577eb02e1145e41a322b..3425006d684b5d93abf2d5f09f5cead1f4d89b78 100755 (executable)
@@ -4,5 +4,8 @@
 #
 # SPDX-License-Identifier: GPL-3.0-or-later
 
-echo "select c.id from civicrm_contact c inner join civicrm_membership m on c.id = m.contact_id where c.is_deleted != 0" | mysql civicrm | sed -e "s:^:https\://my.fsf.org/civicrm/contact/view?reset=1\&cid=:"
+echo "select c.id from civicrm_contact c inner join civicrm_membership m on c.id = m.contact_id where c.is_deleted != 0" |
+    mysql civicrm |
+    tail -n +2 |
+    sed -e "s:^:https\://my.fsf.org/civicrm/contact/view?reset=1\&cid=:"