Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit87523ab

Browse files
author
Thomas G. Lockhart
committed
Comment fixes from Larry Rosenman" <ler@lerctr.org>.
1 parent8a35cbe commit87523ab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎contrib/mac/ouiparse.awk

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: ouiparse.awk,v 1.1 2000/08/2306:02:23 thomas Exp $
1+
# $Id: ouiparse.awk,v 1.2 2000/08/2313:44:14 thomas Exp $
22
#
33
# ouiparse.awk
44
# Author: Lawrence E. Rosenman <ler@lerctr.org>
@@ -10,10 +10,9 @@
1010
# manufacturer text);
1111
# the table name is set by setting the AWK variable TABLE
1212
#
13-
# we translate the character apostrophe (') tospace inside the company name
14-
# to avoid SQL errors.
13+
# we translate the character apostrophe (') todouble apostrophe ('') inside
14+
#the company nameto avoid SQL errors.
1515
#
16-
# match ONLY lines that begin with 2 hex numbers, -, and another hex number
1716

1817
BEGIN {
1918
TABLE="macoui";
@@ -27,6 +26,7 @@ END {
2726
printf"COMMIT TRANSACTION;";
2827
}
2928

29+
# match ONLY lines that begin with 2 hex numbers, -, and another hex number
3030
/^[0-9a-fA-F][0-9a-fA-F]-[0-9a-fA-F]/ {
3131
#if (nrec >= 100) {
3232
#printf "COMMIT TRANSACTION;";
@@ -47,7 +47,7 @@ END {
4747
Company=Company"" $i;
4848
# Modify any apostrophes (') to avoid grief below.
4949
gsub("'","''",Company);
50-
# Print out for the'C' structure in mac.c
50+
# Print out for theSQL table insert
5151
printf"INSERT INTO %s (addr, name) VALUES (trunc(macaddr \'%s\'),\'%s\');\n",
5252
TABLE,OUI,Company;
5353
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp