Posts Tagged ‘terminal’

The Geeky Command Prompt Calculator

image

Ever wish you could just do simple calculations from the terminal? All you need to do is add the following to your bashrc file (or run it from the terminal to test):

calc(){ awk "BEGIN{ print $* }" ;}

When you’re using it, just make sure to not add any spaces, or enclose the calculation parameters in quotes, like this:

calc "8 * 99 / 4"

command line calculator

Find Words That Start With a Set of Characters

image

Have you ever just wanted a list of words that start with a set of characters? If you’ve got a Linux box handy, you can use the "look" command to do just that. Simply type with the following syntax:

look <letters>

And it’ll show any words that start with those characters. Or you could just use Google.




Copyright © 2009 How-To Geek