Re: [exim] bash or perl question

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Gareth Hastings
Ημερομηνία:  
Προς: Marc Perkel
Υ/ο: exim-users
Αντικείμενο: Re: [exim] bash or perl question
> >> You wouldn't happen to know a good way to reverse the digits and
print
> >> the IP address backwards?
> >>


You could try:

cat file | sed 's/\./ /g' | awk '{print $4"."$3"."$2"."$1}'



Gareth