When I need to pull one table from a sql dump, I use a combination of grep, head and tail.
For example:
grep -n "CREATE TABLE" dump.sql
, , 200, - 269, :
head -n 268 dump.sql > tophalf.sql
tail -n 69 tophalf.sql > yourtable.sql
, , script, .
- ?
, bash:
grep -n "CREATE TABLE " dump.sql | tr ':`(' ' ' | awk '{print $1, $4}'
, :
200 FooTable
269 BarTable