aboutsummaryrefslogtreecommitdiffstats
path: root/awklib/eg/network/catpipeclient.awk
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2020-12-27 21:44:25 +0200
committerArnold D. Robbins <arnold@skeeve.com>2020-12-27 21:44:25 +0200
commitce2fcf704aac494b44c78a34c714732685dfc1ad (patch)
tree2b299a1e61dafbf9dc0f37344693a20d8be770b8 /awklib/eg/network/catpipeclient.awk
parente4f1018b3b4ff27d109832210a2e5914e62f9bf9 (diff)
downloadegawk-ce2fcf704aac494b44c78a34c714732685dfc1ad.tar.gz
egawk-ce2fcf704aac494b44c78a34c714732685dfc1ad.tar.bz2
egawk-ce2fcf704aac494b44c78a34c714732685dfc1ad.zip
More updates to gawkinet.texi.
Diffstat (limited to 'awklib/eg/network/catpipeclient.awk')
-rw-r--r--awklib/eg/network/catpipeclient.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/awklib/eg/network/catpipeclient.awk b/awklib/eg/network/catpipeclient.awk
new file mode 100644
index 00000000..c129a1ec
--- /dev/null
+++ b/awklib/eg/network/catpipeclient.awk
@@ -0,0 +1,7 @@
+BEGIN {
+ NetService = "/inet/tcp/0/localhost/8888"
+ print "README" |& NetService
+ while ((NetService |& getline) > 0)
+ print $0
+ close(NetService)
+}