AWK Easy · Lesson 6

ARGV and ARGC: choosing files mid-run

Set ARGV and ARGC in BEGIN, skip a file by clearing ARGV[i], jump ahead with nextfile, and read a list of paths.

Lessons · AWK Easy · Lesson 6 of 10

ARGV and ARGC: choosing files mid-run

Set ARGV and ARGC in BEGIN, skip a file by clearing ARGV[i], jump ahead with nextfile, and read a list of paths.

Illustration for AWK
Set ARGV and ARGC in BEGIN, skip a file by clearing ARGV[i], jump ahead with nextfile, and read a list of paths.