some bash exercise for you

Here is some teaser for you, can you figure out how this works:

1
2
3
echo ls

!!:1-$
Enhanced by Zemanta

bash math

some quick links :

http://mainstreetanswers.org/bash/math.php
http://www.faqs.org/docs/abs/HTML/mathc.html
http://tldp.org/LDP/abs/html/mathc.html

Enhanced by Zemanta