Created
November 29, 2017 19:19
-
-
Save ptasker/f2286ef990fd62028084b9064457c1cf to your computer and use it in GitHub Desktop.
Shell JS example
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
const shell = require( 'shelljs' ); | |
shell.echo( | |
shell.cat('./src/wp-migrate-db-pro/wp-migrate-db-pro.php').grep( /.*\['version'] = '(.*)';/ ) | |
.replace(/.*\['version'] = |'|;|\./g, '') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment