Efficient R-like operations for the command line.