News for hackers. Stuff that matters.
Re:Useful one-line scripts for sed (2005) by predakanga on Thursday June 08, 2017 @02:51AM (#14512401)
I've found that pattern to be very useful when altering/sanitising MySQL backups.

  # Set the engine of all tables in schema `foo` to TokuDB
  sed -re '/^USE `foo`/,/^USE / s/^\) ENGINE=\S+/) ENGINE=TokuDB/'

There are no comments on this comment yet.