I recently was trying to optimize my WordPress site performance and noticed a javascript error saying jQuery is not defined. Basically, there was a script that was loading before jQuery was loaded. I searched my entire theme but could not find the code. I then thought of searching all of my plugins for the code. I tried downloading my site and it was taking forever to download the files.
Then I thought, I wonder if this could be done on the server in Cpanel. I then found this article with an SSH command to search all contents of a folder. I am not a terminal wiz and didn’t want to take the time to setup Putty so then found you can access the terminal inside of Plex Cpanel.
Below is the command I ran in the terminal to find the string I was looking for. In my case it was '.add_to_cart_button:not(.product_type_variable, .product_type_grouped)'
The terminal command
grep -Ri 'your string' 'public_html/your-folder/'