# Discourse-setup: שורה 260: \*0: שגיאת תחביר: אופרנד צפוי (אסימון שגיאה הוא "\*0")

**URL:** <https://meta.discourse.org/t/discourse-setup-line-260-0-syntax-error-operand-expected-error-token-is-0/260991>\
**Category:** Self-hosting\
**Tags:** arm\
**Created:** [7 באפריל,‏ 2023,‏ 9:55pm UTC](https://meta.discourse.org/t/discourse-setup-line-260-0-syntax-error-operand-expected-error-token-is-0/260991 "2023-04-07T21:55:40Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
**Post date:** [8 באפריל,‏ 2023,‏ 9:25am UTC](https://meta.discourse.org/t/discourse-setup-line-260-0-syntax-error-operand-expected-error-token-is-0/260991/6 "2023-04-08T09:25:47Z")

</div>

> [@laplasz](#):
>
> ```plaintext
> avail_cores=$((`awk '/cpu cores/ {print $4;exit}' /proc/cpuinfo`*`sort /proc/cpuinfo | uniq | grep -c "physical id"`))
> 
> ```

There are several ways to go here, I think. Perhaps I’d go for

```plaintext
avail_cores=$((`lscpu --parse=core | awk 'NF==1' | sort -u | wc -l`))

```

(we’re trying to calculate the total number of presently-online physical cores - not logical cores, cpus, sockets, or processors)

Would that work in your case?

---

_[View the full topic](https://meta.discourse.org/t/discourse-setup-line-260-0-syntax-error-operand-expected-error-token-is-0/260991)._
