qse/ase/test/awk/t17.awk

19 lines
284 B
Awk
Raw Normal View History

2006-09-12 15:22:04 +00:00
/hello[[:space:]]/ {
2006-07-27 16:50:29 +00:00
print $0;
2006-09-12 15:22:04 +00:00
print "INTERNAL LOOP NF=" NF;
for (i = 0; i < NF; i++)
{
print "[" $(i+1) "]";
}
#getline a;
#print a;
2006-07-27 16:50:29 +00:00
if (getline > 0) print $0;
2006-09-12 15:22:04 +00:00
print "GETLINE NF=" NF;
for (i = 0; i < NF; i++)
{
print "[" $(i+1) "]";
}
2006-07-27 16:50:29 +00:00
print "----------------";
}