lkml.org 
[lkml]   [1997]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: procfs problems
Date
In article <linux.kernel.5lohbe4xyq.fsf@tequila.systemsz.cs.yale.edu>,
Stefan Monnier <monnier+/news/lists/linux/kernel@TEQUILA.SYSTEMSZ.CS.YALE.EDU> wrote:

>Why in the world is 'cat /proc/cpuinfo' better than 'bin2text /proc/cpuinfo' ?

IFS=: while read token value;do
echo $token ":" $value
done < /proc/cpuinfo

can be used even when /usr/bin has gone south for the winter. One of
the lessons of Windows NT is that even though a binary registry can
be nice for writing simple-minded gui tools, it's a real bitch when
something gets corrupted. Human readable text, on the other hand, is
amenable to deal with when your display tool is toast.


____
david parsons \bi/ orc@pell.chi.il.us
\/

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.083 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site