Code: Select all
awkcalc () { awk"BEGIN{ print $* }" ;}
Code: Select all
awkcalc 7 / 3
2.33333
I suggest you pick a shorter name that is easier to remember. Someone suggested naming it"?":
Code: Select all
? () { awk"BEGIN{ print $* }" ;}
? 7 / 3
2.33333