Re: [exim] bash or perl question

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Bradford Carpenter
Ημερομηνία:  
Προς: Marc Perkel
Υ/ο: exim-users
Αντικείμενο: Re: [exim] bash or perl question
On Thu, 22 Jun 2006 22:47:42 -0700, Marc Perkel wrote:

> You wouldn't happen to know a good way to reverse the digits and print
> the IP address backwards?


I think rev is what you want.

rev /path/to/fileA | sort -u > /path/to/tempA

reverses the characters in each line before sorting, for example.