Annihilannic
MIS
How weird is this:
I stumbled upon it yesterday when trying to split the controller number out of some disk devices of the format "c32t3d6".
gawk behaves as expected. I'd be curious to see if anyone can reproduce this on other operating systems... or even explain it!
Annihilannic.
Code:
$ for l in a b c d e f g h i j k l m n o p q r s t u v w x y z ; do echo abcdefghijklmnopqrstuvwxyz | awk -F $l '{print $1}' ; done
a
ab
abc
abcd
abcde
abcdef
abcdefg
abcdefgh
abcdefghi
abcdefghij
abcdefghijk
abcdefghijkl
abcdefghijklm
abcdefghijklmn
abcdefghijklmno
abcdefghijklmnop
abcdefghijklmnopq
abcdefghijklmnopqr
abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrst
abcdefghijklmnopqrstu
abcdefghijklmnopqrstuv
abcdefghijklmnopqrstuvw
abcdefghijklmnopqrstuvwx
abcdefghijklmnopqrstuvwxy
$
I stumbled upon it yesterday when trying to split the controller number out of some disk devices of the format "c32t3d6".
gawk behaves as expected. I'd be curious to see if anyone can reproduce this on other operating systems... or even explain it!
Annihilannic.