ubuntu-buildroot/output/build/host-gawk-5.2.0/awklib/eg/network/daytimeclient.awk

10 lines
231 B
Awk

BEGIN {
daytime_server = "time-a-g.nist.gov"
daytime_connection = "/inet/tcp/0/" daytime_server "/daytime"
daytime_connection |& getline
print $0
daytime_connection |& getline
print $0
close(daytime_connection)
}