xref: /illumos-gate/usr/src/test/util-tests/tests/awk/gnu/widesub3.awk (revision e6d6c189fa3a95d7aa27bbe0aeacf7c1a6b57c8c)
1{
2   if (substr($1,1,1) == substr($0,1,1))
3      print "substr matches"
4   sub(/foo/,"bar")
5   print nr++
6}
7