Revision 9587
Added by Aaron Marcuse-Kubitza over 11 years ago
lib/sh/resume_import.sh | ||
---|---|---|
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 |
40 |
q # stop after first match |
|
40 |
# stop after first match |
|
41 |
q |
|
41 | 42 |
}' |
42 | 43 |
} |
43 | 44 |
|
... | ... | |
58 | 59 |
{ |
59 | 60 |
echo_func |
60 | 61 |
echo_run sed -n '/^-- (Table structure|Dumping data) for table /{ |
61 |
q # stop after first match |
|
62 |
# stop at first match |
|
63 |
q |
|
62 | 64 |
} |
63 |
p # passthru until first match |
|
65 |
# passthru until first match |
|
66 |
p |
|
64 | 67 |
' "$@" |
65 | 68 |
} |
66 | 69 |
|
Also available in: Unified diff
bugfix: lib/sh/resume_import.sh: sed calls: moved end-of-line comments to their own line because end-of-line comments are not supported on Mac