Quantcast
Channel: Calculate variable, and output it to another variable - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 5

Answer by Hola Soy Edu Feliz Navidad for Calculate variable, and output it to another variable

$
0
0

I would use (as was mentioned before) rownum=$((nextnum+1)) or ((rownum=nextnum+1)) but if you prefer an standard command you can use the let command, like let rownum=$nextnum+1


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>