User login

find

Find text anywhere in a MySQL database (use PHPmyadmin)

I just had a quick Drupal question. We need to search our site and make sure a link is never used directly on any of the pages. I know Drugal is a sql backend -- is there a quick and easy way to just search the database for that?

Yes, there are ways. If it is in content Drupal's built in search should do it. Otherwise, PHPMyAdmin has a good every database table / every field search that's a good deal more complicated than a simple SQL command.

Vim search and replace between set lines

regular expression change on next lines vi
Doesn't even need a regexp. Just find and substitute.

Replace all occurrences of "link" with "visited" between lines 221 and 225:

:221,225s/link/visited/g

Syndicate content