/
niceSOFT
/
gawk
Обзор
Документация
Войти
/
niceSOFT
/
gawk
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/symtab9.awk
19 строк
429 B
Arnold D. Robbins
Fix symtab9 test so it will work on Windows too.
02 май 2013, 23:47
02 май 2013, 23:47
800d8df
Код
Авторство
О чём код?
BEGIN { file = "testit.txt" for (i = 1; i <= 3; i++) print("line", i) > file close(file) ARGV[1] = file ARGC = 2 for (i = 1; i <= 3; i++) getline printf "NR should be 3, is %d\n", SYMTAB["NR"] # Can't do this here. Windows doesn't let you remove a file that # is still open. Moving it to END won't help either, since the file # (correctly) remain open until after the END finishes. # system("rm testit.txt") }