lkml.org 
[lkml]   [2018]   [Dec]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] x86/cpu: sort cpuinfo flags
From
Date
On 12/21/18 5:04 AM, Borislav Petkov wrote:
>
> $ grep -m 1 flags /proc/cpuinfo | tr " " "\n" | sort | xargs
>
> and there probably is even a simpler way to do that.
>
> Or add a shell alias for that or a small script or ...

I don't always look at these through the shell. I got a screenshot the
other day, or someone pasted the flags into a spreadsheet.

/proc/cpuinfo is supposed to be human-readable. But, the flags field,
as it stands, is not. You've further proved my point by having to
machine post-process it to make it usable by humans. :)

\
 
 \ /
  Last update: 2018-12-21 16:19    [W:0.238 / U:0.600 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site