String Byte Length: Difference between revisions

(example)
Line 30:
z=length(s) # variable name example
Ad hoc program from command line:
echo "Hello, worldwørld!" | awk '{print length($0)}' # 14
From executable script: (prints for every line arriving on stdin)
#!/usr/bin/awk -f
Anonymous user