Format command lines