Linux-kernel mailing list archive 2000-15,: Re: Suggested dual human/binary interface for proc/devfs

# Re: Suggested dual human/binary interface for proc/devfs

Bill Wendling (wendling@ganymede.isdn.uiuc.edu)
Tue, 11 Apr 2000 11:28:10 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: George Bonser: "Re: Suggested dual human/binary interface for proc/devfs"
- Previous message: Bill Wendling: "Re: Suggested dual human/binary interface for proc/devfs"
- In reply to: Ed Carp: "Re: Suggested dual human/binary interface for proc/devfs"

Also sprach Ed Carp:
} George Bonser (grep@shorelink.com) writes:
}
} > device{eth0{ip_address=192.168.201.116;netmask=255.255.255.0};eth1{ip_address=192.168.202.117;netmask=255.255.255.0};}
} >
} > or
} >
} > device {
} > eth0 {
} > ip_address=192.168.201.116
} > netmask=255.255.255.0
} > }
} > eth1 {
} > ip_address=192.168.202.117
} > netmask=255.255.255.0
} > }
} > }
} >
} > (same thing)
} >
} > nests better and is more readable and there is already a bunch of code
} > available to parse this format.
} >
} > The logic to parse this should be very easy.
}
} In a shell script? I don't think so. Not nearly as easy as one-device-per-line.

I would think Perl could handle the above without too much fuss...

} Oh, and your way is inefficient - more lines to read, and a lot of wasted space.
}
Inefficient? Not by a whole lot...1ns maybe.

    --
    || Bill Wendling			wendling@ganymede.isdn.uiuc.edu

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

- Next message: George Bonser: "Re: Suggested dual human/binary interface for proc/devfs"
- Previous message: Bill Wendling: "Re: Suggested dual human/binary interface for proc/devfs"
- In reply to: Ed Carp: "Re: Suggested dual human/binary interface for proc/devfs"