Project

General

Profile

« Previous | Next » 

Revision 9579

lib/sh/resume_import.sh: get_pkey_at_pos(): changed $quote to ` to work with inputs/GBIF/_MySQL/GBIFPortalDB-2013-02-20.data.sql

View differences:

resume_import.sh
31 31
{ echo_func; local int; int="$(is_pkey_imported__int)"; int2bool "$int"; }
32 32

  
33 33

  
34
get_pkey_at_pos() # usage: i=# get_pkey_at_pos
34
get_pkey_at_pos() # usage: i=# [quote=...] get_pkey_at_pos
35 35
{
36
	echo_func; log++; kw_params i; : "${i?}"; mk_table_esc
36
	echo_func; log++; kw_params i; : "${i?}"; quote='`'; mk_table_esc
37 37
	piped_cmd echo_run tail -c +"$i" "$top_file"\
38 38
	|echo_run sed -n '/^INSERT INTO '"$table_esc"' VALUES \(([0-9]+),.*$/{
39 39
s//\1/p

Also available in: Unified diff