On Wed, Nov 09, 2005 at 08:25:14AM +0100, Michael Dominok wrote: > asterix:~/tmp$ cat bsp.txt > h.hirsch * geheim * # h1.hirsch@foo.bar > h.hirsch * geheim * # h2.hirsch@foo.bar > h.hirsch * geheim * # h3.hirsch@foo.bar > asterix:~/tmp$ cat bsp.txt | awk {'print $6'} Useless use of cat! awk {'print $6'} < bsp.txt Ohne awk mit sh/bash/ksh-Mitteln: #! /bin/bash while read a b c d e email rest; do echo $email done < bsp.txt
Attachment:
pgpXPYLQ5KUiq.pgp
Description: PGP signature