On 2/14/19 5:46 PM, Bernd Petrovitsch wrote: > 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. Thanks, I changed that to "egrep". Cheers, Michael -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/