Skip to content

Instantly share code, notes, and snippets.

@cfg
Created January 11, 2013 15:28
Show Gist options
  • Save cfg/4511512 to your computer and use it in GitHub Desktop.
Save cfg/4511512 to your computer and use it in GitHub Desktop.
crudely extract tab delimited wordpress plugin name/directory name
$ cd /path/to/wordpress/wp-content/plugins/
$ for foo in `find . -maxdepth 1 -type d` ; do p=$(basename $foo) ; n=`grep "Plugin Name" "$p/$p.php" | cut -d':' -f2-` ; echo -e "$p\t$n" ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment