--On Wednesday, November 06, 2002 03:22:24 PM +0530 Sijo Mathew
<sijo@xxxxxxxxxx> wrote:
> Hi, thanks for the reply.
> One more question.
> How can I rearrange the entries of the "if_inet6" file found in
> "/proc/net" folder of linux machine.
> The entry is,
>
> 00000000000000000000000000000001 01 80 10 80 lo
> fe800000000000000250bafffe8c9b65 02 0a 20 80 eth0
>
> I have to reverse the order of the entries.
> I tried both the "ifconfig" and "ip" programs comes with Linux.
> I have deleted both of the entries and added them in both order.
> But the local loop entry always comes first. But I need the
> ethernet entry first and local loop
> entry as second. How can I do it....?
Why?
Try usage of "sort", it's a powerful tool, see manpage for specifying
fields for sort key.
Peter
---
Dr. Peter Bieringer
mailto: pb at bieringer dot de
http://www.bieringer.de/pb/
Key 0x958F422D : B501 24F4 9418 23E2 C0F3 F833 7B57 AA7B 958F 422DAttachment:
pgp6FqebgC2Bc.pgp
Description: PGP signature