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

From: Bill Wendling (wendling@ganymede.isdn.uiuc.edu)
Date: Tue Apr 11 2000 - 11:28:10 EST


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/



This archive was generated by hypermail 2b29 : Sat Apr 15 2000 - 21:00:16 EST