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

10 lines
231 B
Awk
Raw Normal View History

2024-04-01 15:19:46 +00:00
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)
}