Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Replace expr with Arithmetic Expansion #24

Open
bkil opened this issue Jun 1, 2022 · 0 comments
Open

Replace expr with Arithmetic Expansion #24

bkil opened this issue Jun 1, 2022 · 0 comments

Comments

@bkil
Copy link

bkil commented Jun 1, 2022

N="$(expr $(nproc) '+' 1)" -> N=$((nproc+1))

This saves a fork too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant