> Bernd Petrovitsch <bernd@xxxxxxxxxxxxxxxxxxx> hat am 14. Februar 2019 um 17:46 > geschrieben: > > > Hi all! > > In the EXAMPLE section of `man sched_setaffinity` manual page ca nbe > found (on Ubuntu-Bionic-current). > ---- snip --- > $ lscpu | grep -i 'core.*:|socket' > Thread(s) per core: 2 > Core(s) per socket: 2 > Socket(s): 1 > ---- snip --- > However, one needs *egrep* (and not "only" *grep) for the '|' > to work. > it is even more complicated: LANG=C lscpu | grep -i -E 'core.*:|Socket' Thread(s) per core: 2 Core(s) per socket: 2 Socket(s): 1 otherwise the text will be in your locale and the filter will not work. re, wh