Re: [exim] bash or perl question

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Gareth Hastings
Ημερομηνία:  
Προς: exim-users
Υ/ο: Jack Bailey
Αντικείμενο: Re: [exim] bash or perl question
> How about:
>
> cat file | awk -F. '{ printf("%s.%s.%s.%s\n", $4, $3, $2, $1); }'



Ah, I forgot you could specify the delimiter with -F!!

cat file | awk -F. '{print $4"."$3"."$2"."$1}'


(Less typing than above!!!!)



Gareth