How to perform simple calculations in Linux shell? Commands Add comments Dec 312009 How to perform simple calculations in Linux shell? Answer: Use the "bc" commad. echo "101+1" | bc It will gives: 102 Related posts: Simple for loop in Bash shell How to perform a reverse DNS lookup in Linux How to perform checksum on a folder? How to perform syntax check for Python program Simple environment variable usage in Linux Leave a Reply Cancel reply Name (required) E-mail (required) URI Your Comment You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>