Table of Contents

GNU bc Cheat Sheet

Overview

mbc ()
{
  echo $@ | bc -l -q ~/bin/extensions.bc
}
 
alias bc="bc -l -q ~/bin/extensions.bc"

So now mbc '(3+5)/6' works as expected

Basic Usage

Advanced Usage

Note that the auto keyword is used to declare a local variable.