qse/ase/test/awk/t28.awk

18 lines
384 B
Awk
Raw Normal View History

2006-08-13 06:33:30 +00:00
END {
print index ("abc", "abc");
print index ("abc", "b");
2006-08-13 16:05:04 +00:00
print index ("abc", "kabc");
print "----------------------------";
print substr ("abc", "abcdefg", 5);
print substr ("abc", -1, 5);
print substr ("abc", 0, 5);
print substr ("abc", 1, 5);
print substr ("abc", 2.829, 5);
print substr ("abc", "3", 5);
print substr ("abc", 4, 5);
a[1] = 20;
substr (a, 3, 4);
2006-08-13 06:33:30 +00:00
}