Do it this way -- encapsulate shell commands into a script(1) session for dummies(tm)