(C) 2003, Tim Maher 1-32 www.TeachMePerl.com Number Crunching pcalc #! /bin/sh # Script patches in given args for "$*", # creating custom Perl program perl -wl -e "print $*;" Examples $ pcalc 'sqrt(22/7)' Becomes: perl -wl -e "print sqrt(22/7);" 1.77281052085584 $ pcalc 'sqrt(sqrt(2)**7)+cos(.5)' 4.24116822290523 $ SUMMARY grep, sed, & awk very useful commands but with ancient limitations, especially in commercial UNIX (the GNU utilities fix some)