Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8158611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:39:43+00:00 2026-06-06T17:39:43+00:00

I am following the guide at this site and trying to exclude databases with

  • 0

I am following the guide at this site and trying to exclude databases with the name turnkey in them.

find /var/lib/mysql -mindepth 1 -maxdepth 1 -type d | cut -d'/' -f5 | grep -v ^mysql\$ | tr \\\r\\\n ,\ `

this command returns all the database names, how can I remove the turnkey ones?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T17:39:46+00:00Added an answer on June 6, 2026 at 5:39 pm

    The command you show is a Linux / unix shell command. If you add another step

     grep -v turnkey
    

    you will omit any lines with the word “turnkey” in them.

    Like so:

    find /var/lib/mysql -mindepth 1 -maxdepth 1 -type d | 
    cut -d'/' -f5 | 
    grep -v ^mysql\$ |
    grep -v turnkey 
    tr \\\r\\\n ,\ `
    

    You didn’t ask if this is a good idea. I don’t think it is, because it relies on a particular ondisk structure for the MySQL server daemon software that is not part of the formal specification of the system. In other words, it could change.

    You could do this:

    SELECT SCHEMA_NAME FROM `information_schema`.`SCHEMATA` 
     WHERE SCHEMA_NAME NOT LIKE '%turnkey%'
     ORDER BY SCHEMA_NAME
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm following this guide: http://www.math.umd.edu/~dcarrera/ruby/0.3/chp_01/programs.html and I'm trying to create my first ruby program.
I'm trying to use Youtube apis in my web application by following this guide
I am using lazy_highcharts gem and trying to configure live charts. Following this guide
I'm trying to speed up my site and found this site: http://www.computingunleashed.com/speed-up-wordpress-ultimate-guide-to-make-sites-super-fast.html , which
I'm trying to user MiddlemanApp to localize a website, following this http://middlemanapp.com/guides/localization guide. I
I am trying to implement Lucene with cakephp and following this guide http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/ Am
i'm trying to create a horizontal layout following this guide here: http://www.queness.com/post/356/create-a-vertical-horizontal-and-diagonal-sliding-content-website-with-jquery Now it
I am following this guide developer instrument guide and RayWenderlich's tutorial to view and
I'm following this guide to get key binding to work in my application. So
I'm having trouble following this guide to extract my interfaces and entities from my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.