Awk apenas as seis primeiras letras
$ cat file1
abc|ABC|123456789|QWERTZ
abc|ABC|1|QWERTZ
abc|ABC|0|QWERTZ
abc|ABC|123456789|QWERTZ
$ awk -F\| '$3 > 0 { print substr($3,1,6)}' file1
123456
1
123456
AttractivePenguin