-
-
Save ztrayner/3bd0e80ea0a5f0b3f8a4f0ef5efd8570 to your computer and use it in GitHub Desktop.
Search content of blocks
This file contains 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
#Usage: search_blocks.sh SITE TERM | |
#Where SITE is chart or press and TERM is whatever you're looking for. | |
#!/bin/bash | |
ssh lucid 'mysql '$1'_drupal -e "SELECT bid, info, CONCAT('\''https://zach.office.lucid'$1'.com/pages/admin/structure/block/manage/block/'\'', bid, '\''/configure'\'') as url FROM block_custom WHERE body LIKE '\''%'$2'%'\''\G"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment