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

Ed Carp (erc@pobox.com)
Tue, 11 Apr 2000 02:53:08 -0500

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Robert Kaiser: "devfs - why not ?"
- Previous message: Ed Carp: "Re: Suggested dual human/binary interface for proc/devfs"
- Next in thread: Vardhan Varma: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: Vardhan Varma: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: George Bonser: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: Mike Porter: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: Bill Wendling: "Re: Suggested dual human/binary interface for proc/devfs"

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.

Oh, and your way is inefficient - more lines to read, and a lot of wasted space.

-
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: Robert Kaiser: "devfs - why not ?"
- Previous message: Ed Carp: "Re: Suggested dual human/binary interface for proc/devfs"
- Next in thread: Vardhan Varma: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: Vardhan Varma: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: George Bonser: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: Mike Porter: "Re: Suggested dual human/binary interface for proc/devfs"
- Reply: Bill Wendling: "Re: Suggested dual human/binary interface for proc/devfs"