Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another way with csh/tcsh' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another way with csh/tcsh
Authored by: winswitcher429 on Feb 02, '05 03:55:54PM

I have an alias setup in my .cshrc file that looks like this

alias calc 'echo " scale=4;\!*" | bc'

You can then from the command line type in

%calc 5 * 45 + ( 324 - 17 ) / 15
245.4666
%

What's really cool about almost ALL of these hints is that they work on almost ALL Unix versions. I also have this setup on my OpenStep, Solaris and Linux machines and this works that same on all of them



[ Reply to This | # ]