awk only first six letters
$ 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
awk only first six letters
$ 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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us