Created
January 29, 2025 15:55
-
-
Save arpitr/9866543261420d7669b2a192f6bbd8dd to your computer and use it in GitHub Desktop.
Drupal Export Query in CSV Format
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
drush sqlq "select a.id,a.mail from <table_name>" --uri='<site-uri>'| awk 'BEGIN { FS = "\t"} ; {print $1","$2}' > output.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment