3 ms·
Hacking a small pipeline starting with cat always beats having to write a code to parse something unintelligible at first sight IMHO. At the end of the day, fi
by bayindirh 6y ago
Hacking a small pipeline starting with cat always beats having to write a code to parse something unintelligible at first sight IMHO.
At the end of the day, first one is always faster.
- jbverschoor 6y agoStreams should be used for that.. streams. Structures should be used for structured data.
- bayindirh 6y agoI don't see a reason for /proc/meminfo or /proc/cpuinfo to be a stream. Similarly /proc/$pid/{cmdline,cgroup,mounts,..} to be streams. /proc is a very fine interface for getting realtime basic information about a process. Maybe we should leave it as it is and stop abusing well matured interfaces? I see red when Chrome uses intentionally broken symbolic links to store information on a system for example.