my random thoughts

The work is always in progress.

  • Main page
  • Posts
  • Nuggets
Skip to content

Tag: expr

variable names in $(( expr ))

2015-07-21 2021-01-20 omik

You can use variable names without $ in bash:

a=3
echo $(( a - 1 ))

Note on compatibility: in Bash, you have to prefix special variables like $?, unlike Zsh.

Posted in From 'dev', Programming (and related)Tagged bash, exprLeave a Comment on variable names in $(( expr ))

O mnie

picture

Pisze bloga z narzekaniem, marudzeniem na otaczającą rzeczywistość, czasem czymś zdatnym do czytania.
O sobie: MKM, MK, ateista. Typ aspołeczny. Żywi się marudzeniem i całkami. Trzyma w domu (lub nie) kota Schrödingera.

Recent Posts

  • So, I moved.
  • fun fact about TCP
  • (no title)
  • (no title)
  • (no title)

Categories

  • From 'dev'
  • From Tumblr
  • Photography
  • Programming (and related)

Archives

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Proudly powered by WordPress | Theme: v92v2 by omik, built upon underscores.me