You don’t do it from within sqlite, you do it at the command prompt , i take it your in Windows OS?
For some reason this whole process is not documented well for Windows.
The next problem is the fact there isn’t a grep command in windows.
Here are some pointers:
install : GNU Grep For windows, Complete package, except sources, after install make sure to add the full path to the bin directory to your environment.
2)Assuming you now have a command prompt with both Sqlite3 & grep available, the is:
sqlite3 com.plexapp.plugins.library.db “.dump metadata_item_settings” | grep -v TABLE | grep -v INDEX > settings.sql
Note: the metadata_item_settings table has a column (account_id) , the new system this will be imported to has to have matching accounts/id or your results will be off.
Cheers, hope this steers you in the right direction!
-TD