I am using Ubuntu 14.04, and making heavy use of all the great commands awk, sed, sort and so on.
Recently it came to my attention that Ubuntu uses mawk as the default implementation, but since I wanted to use some functionality specific to gawk, I promptly apt-get installed that package.
At that point, it seems that my Ubuntu switched to gawk as the default, which I did not want, since it has some subtle differences in behavior (for example, rand() seems to be deterministic in gawk, which is very bad since I use it all the time).
How can I have both packages installed, but use mawk as the default implementation?