Because I am very tired to typing scale=3 every time I start bc, I did the following.
- Made a file named .bc in my HOME directory.
- Put scale=3 as the contents of .bc.
- Created an alias in my ~/.bashrc for bc to process my $HOME/.bc file.
[me@mybox myhome]$ grep alias ~/.bashrc alias bc='bc ~/.bc' [me@mybox myhome]$ cat ~/.bc scale=3 [me@mybox myhome]$ bc 5/6 0.833