Re: [exim] bash or perl question

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Marc Perkel
日付:  
To: Bradford Carpenter
CC: exim-users
題目: Re: [exim] bash or perl question


Bradford Carpenter wrote:
> 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.
>


Not quite what I wanted - what I want to do is reverse the numbers in IP
addresses.